#3138C2#3138C2

#3138C2 is a dark, highly saturated blue. Relative luminance 0.074; OKLCH L 43.8% C 0.209 H 271.7°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#3138C2
RGBrgb(49, 56, 194)
HSLhsl(237, 60%, 48%)
HSVhsv(237, 75%, 76%)
CMYKcmyk(74.7%, 71.1%, 0%, 23.9%)
CIE-LABlab(32.65, 44.01, -72.26)
CIE-LCHlch(32.65, 84.60, 301.35°)
OKLaboklab(43.77% 0.0061 -0.2091)
OKLCHoklch(43.77% 0.209 271.7)
XYZxyz(12.4151, 7.3750, 51.7977)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138C2 #C2BB31
analogous
#3181C2 #3138C2 #7231C2
triadic
#3138C2 #C23138 #38C231
tetradic
#3138C2 #C23181 #C2BB31 #31C272
square
#3138C2 #C23181 #C2BB31 #31C272
split-complementary
#3138C2 #C27231 #81C231
monochromatic
#181C60 #252A91 #3138C2 #5B61D6 #8C90E2

Accessibility & contrast

On white

8.48
#3138C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#3138C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3138C2
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3138C2#FFFFFF#000000##FFFFFF
##3138C21.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#0046BF
Tritanopia (blue-blind)
#005F79
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3138c2;
/* rgb */ color: rgb(49, 56, 194);
/* oklch */ color: oklch(43.8% 0.209 271.7);
Tailwind
colors: {
  custom: {
    50: '#8070d6',
    500: '#3138c2',
    950: '#000000',
  },
}
SCSS
$custom: #3138c2;
$custom-light: #8070d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3138c2",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 237.103,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.43769,
    "c": 0.20921,
    "h": 271.7
  },
  "luminance": 0.07376
}

Semantic roles & 50–950 ramp

primary
#3138C2
secondary
#CCC883
accent
#DB45E3
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3138C2

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#3138C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva