#312097#312097

#312097 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.180 H 278.7°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#312097
RGBrgb(49, 32, 151)
HSLhsl(249, 65%, 36%)
HSVhsv(249, 79%, 59%)
CMYKcmyk(67.5%, 78.8%, 0%, 40.8%)
CIE-LABlab(23.40, 43.34, -61.68)
CIE-LCHlch(23.40, 75.39, 305.09°)
OKLaboklab(35.89% 0.0272 -0.1781)
OKLCHoklch(35.89% 0.18 278.7)
XYZxyz(7.3673, 3.9197, 29.6405)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312097 #869720
analogous
#204B97 #312097 #6C2097
triadic
#312097 #973120 #209731
tetradic
#312097 #97204B #869720 #20976C
square
#312097 #97204B #869720 #20976C
split-complementary
#312097 #976C20 #4B9720
monochromatic
#100B32 #211564 #312097 #412BC9 #6956DB

Accessibility & contrast

On white

11.77
#312097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#312097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312097
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312097#FFFFFF#000000##FFFFFF
##3120971.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #312097;
/* rgb */ color: rgb(49, 32, 151);
/* oklch */ color: oklch(35.9% 0.180 278.7);
Tailwind
colors: {
  custom: {
    50: '#785fb7',
    500: '#312097',
    950: '#000000',
  },
}
SCSS
$custom: #312097;
$custom-light: #785fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#312097",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 248.571,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35886,
    "c": 0.18022,
    "h": 278.7
  },
  "luminance": 0.0392
}

Semantic roles & 50–950 ramp

primary
#312097
secondary
#B0BF54
accent
#E840D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312097

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

Preview Lab → · Contrast checker → · Palette generator →

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