#312AB3#312AB3

#312AB3 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.2% C 0.205 H 274.3°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#312AB3
RGBrgb(49, 42, 179)
HSLhsl(243, 62%, 43%)
HSVhsv(243, 77%, 70%)
CMYKcmyk(72.6%, 76.5%, 0%, 29.8%)
CIE-LABlab(28.28, 46.96, -70.59)
CIE-LCHlch(28.28, 84.78, 303.64°)
OKLaboklab(40.21% 0.0154 -0.2042)
OKLCHoklch(40.21% 0.205 274.3)
XYZxyz(10.2286, 5.5626, 43.1737)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312AB3 #ACB32A
analogous
#2A67B3 #312AB3 #752AB3
triadic
#312AB3 #B3312A #2AB331
tetradic
#312AB3 #B32A67 #ACB32A #2AB375
square
#312AB3 #B32A67 #ACB32A #2AB375
split-complementary
#312AB3 #B3752A #67B32A
monochromatic
#161350 #231E81 #312AB3 #4E46D4 #7D78DF

Accessibility & contrast

On white

9.94
#312AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#312AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312AB3
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312AB3#FFFFFF#000000##FFFFFF
##312AB31.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B7
Deuteranopia (green-blind)
#003CB1
Tritanopia (blue-blind)
#00536D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #312ab3;
/* rgb */ color: rgb(49, 42, 179);
/* oklch */ color: oklch(40.2% 0.205 274.3);
Tailwind
colors: {
  custom: {
    50: '#7e66cb',
    500: '#312ab3',
    950: '#000000',
  },
}
SCSS
$custom: #312ab3;
$custom-light: #7e66cb;
$custom-dark: #000000;
JSON
{
  "hex": "#312ab3",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 243.066,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40205,
    "c": 0.20475,
    "h": 274.3
  },
  "luminance": 0.05564
}

Semantic roles & 50–950 ramp

primary
#312AB3
secondary
#C3C772
accent
#E543DD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312AB3

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

Preview Lab → · Contrast checker → · Palette generator →

#312AB3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva