#312987#312987

#312987 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.150 H 279.3°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#312987
RGBrgb(49, 41, 135)
HSLhsl(245, 53%, 35%)
HSVhsv(245, 70%, 53%)
CMYKcmyk(63.7%, 69.6%, 0%, 47.1%)
CIE-LABlab(23.63, 32.93, -51.38)
CIE-LCHlch(23.63, 61.02, 302.65°)
OKLaboklab(35.56% 0.0244 -0.1481)
OKLCHoklch(35.56% 0.15 279.3)
XYZxyz(6.4313, 3.9876, 23.3478)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312987 #7F8729
analogous
#295087 #312987 #602987
triadic
#312987 #873129 #298731
tetradic
#312987 #872950 #7F8729 #298760
square
#312987 #872950 #7F8729 #298760
split-complementary
#312987 #876029 #508729
monochromatic
#0F0C29 #201B58 #312987 #4237B6 #665DCE

Accessibility & contrast

On white

11.68
#312987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#312987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312987
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312987#FFFFFF#000000##FFFFFF
##3129871.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #312987;
/* rgb */ color: rgb(49, 41, 135);
/* oklch */ color: oklch(35.6% 0.150 279.3);
Tailwind
colors: {
  custom: {
    50: '#7464ab',
    500: '#312987',
    950: '#000000',
  },
}
SCSS
$custom: #312987;
$custom-light: #7464ab;
$custom-dark: #000000;
JSON
{
  "hex": "#312987",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 245.106,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35558,
    "c": 0.15009,
    "h": 279.3
  },
  "luminance": 0.03988
}

Semantic roles & 50–950 ramp

primary
#312987
secondary
#ABB359
accent
#DD4BD0
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #312987

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

Preview Lab → · Contrast checker → · Palette generator →

#312987 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva