#312196#312196

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

Color values

HEX#312196
RGBrgb(49, 33, 150)
HSLhsl(248, 64%, 36%)
HSVhsv(248, 78%, 59%)
CMYKcmyk(67.3%, 78%, 0%, 41.2%)
CIE-LABlab(23.48, 42.50, -60.94)
CIE-LCHlch(23.48, 74.30, 304.89°)
OKLaboklab(35.91% 0.0269 -0.176)
OKLCHoklch(35.91% 0.178 278.7)
XYZxyz(7.3137, 3.9421, 29.2237)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312196 #869621
analogous
#214B96 #312196 #6B2196
triadic
#312196 #963121 #219631
tetradic
#312196 #96214B #869621 #21966B
square
#312196 #96214B #869621 #21966B
split-complementary
#312196 #966B21 #4B9621
monochromatic
#100B32 #211664 #312196 #412CC8 #6957DA

Accessibility & contrast

On white

11.74
#312196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#312196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312196
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312196#FFFFFF#000000##FFFFFF
##3121961.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.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: #312196;
/* rgb */ color: rgb(49, 33, 150);
/* oklch */ color: oklch(35.9% 0.178 278.7);
Tailwind
colors: {
  custom: {
    50: '#785fb6',
    500: '#312196',
    950: '#000000',
  },
}
SCSS
$custom: #312196;
$custom-light: #785fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#312196",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 248.205,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35906,
    "c": 0.17804,
    "h": 278.7
  },
  "luminance": 0.03943
}

Semantic roles & 50–950 ramp

primary
#312196
secondary
#B0BE55
accent
#E741D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312196

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

Preview Lab → · Contrast checker → · Palette generator →

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