#312AA9#312AA9

#312AA9 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.193 H 275.2°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#312AA9
RGBrgb(49, 42, 169)
HSLhsl(243, 60%, 41%)
HSVhsv(243, 75%, 66%)
CMYKcmyk(71%, 75.1%, 0%, 33.7%)
CIE-LABlab(27.22, 43.72, -66.34)
CIE-LCHlch(27.22, 79.45, 303.39°)
OKLaboklab(39.14% 0.0175 -0.1918)
OKLCHoklch(39.14% 0.193 275.2)
XYZxyz(9.2537, 5.1726, 38.0392)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312AA9 #A2A92A
analogous
#2A63A9 #312AA9 #712AA9
triadic
#312AA9 #A9312A #2AA931
tetradic
#312AA9 #A92A63 #A2A92A #2AA971
square
#312AA9 #A92A63 #A2A92A #2AA971
split-complementary
#312AA9 #A9712A #63A92A
monochromatic
#151247 #231E78 #312AA9 #4841D0 #7772DC

Accessibility & contrast

On white

10.32
#312AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#312AA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312AA9
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312AA9#FFFFFF#000000##FFFFFF
##312AA91.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#003AA7
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #312aa9;
/* rgb */ color: rgb(49, 42, 169);
/* oklch */ color: oklch(39.1% 0.193 275.2);
Tailwind
colors: {
  custom: {
    50: '#7b66c4',
    500: '#312aa9',
    950: '#000000',
  },
}
SCSS
$custom: #312aa9;
$custom-light: #7b66c4;
$custom-dark: #000000;
JSON
{
  "hex": "#312aa9",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 243.307,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39142,
    "c": 0.19261,
    "h": 275.2
  },
  "luminance": 0.05173
}

Semantic roles & 50–950 ramp

primary
#312AA9
secondary
#BEC36C
accent
#E344DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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