#312096#312096

#312096 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.179 H 278.8°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#312096
RGBrgb(49, 32, 150)
HSLhsl(249, 65%, 36%)
HSVhsv(249, 79%, 59%)
CMYKcmyk(67.3%, 78.7%, 0%, 41.2%)
CIE-LABlab(23.30, 43.03, -61.24)
CIE-LCHlch(23.30, 74.85, 305.09°)
OKLaboklab(35.78% 0.0275 -0.1769)
OKLCHoklch(35.78% 0.179 278.8)
XYZxyz(7.2864, 3.8874, 29.2146)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312096 #859620
analogous
#204A96 #312096 #6C2096
triadic
#312096 #963120 #209631
tetradic
#312096 #96204A #859620 #20966C
square
#312096 #96204A #859620 #20966C
split-complementary
#312096 #966C20 #4A9620
monochromatic
#100A31 #211564 #312096 #412BC8 #6956DB

Accessibility & contrast

On white

11.81
#312096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312096
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312096#FFFFFF#000000##FFFFFF
##3120961.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003394
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #312096;
/* rgb */ color: rgb(49, 32, 150);
/* oklch */ color: oklch(35.8% 0.179 278.8);
Tailwind
colors: {
  custom: {
    50: '#785fb6',
    500: '#312096',
    950: '#000000',
  },
}
SCSS
$custom: #312096;
$custom-light: #785fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#312096",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 150
  },
  "hsl": {
    "h": 248.644,
    "s": 64.835,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35777,
    "c": 0.179,
    "h": 278.8
  },
  "luminance": 0.03888
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #312096

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

Preview Lab → · Contrast checker → · Palette generator →

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