#312188#312188

#312188 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.161 H 280.9°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#312188
RGBrgb(49, 33, 136)
HSLhsl(249, 61%, 33%)
HSVhsv(249, 76%, 53%)
CMYKcmyk(64%, 75.7%, 0%, 46.7%)
CIE-LABlab(22.01, 38.02, -54.67)
CIE-LCHlch(22.01, 66.59, 304.81°)
OKLaboklab(34.43% 0.0304 -0.1577)
OKLCHoklch(34.43% 0.161 280.9)
XYZxyz(6.2530, 3.5178, 23.6373)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312188 #788821
analogous
#214588 #312188 #642188
triadic
#312188 #883121 #218831
tetradic
#312188 #882145 #788821 #218864
square
#312188 #882145 #788821 #218864
split-complementary
#312188 #886421 #458821
monochromatic
#0E0925 #1F1557 #312188 #432DB9 #644FD4

Accessibility & contrast

On white

12.33
#312188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#312188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312188
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312188#FFFFFF#000000##FFFFFF
##3121881.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #312188;
/* rgb */ color: rgb(49, 33, 136);
/* oklch */ color: oklch(34.4% 0.161 280.9);
Tailwind
colors: {
  custom: {
    50: '#755eac',
    500: '#312188',
    950: '#000000',
  },
}
SCSS
$custom: #312188;
$custom-light: #755eac;
$custom-dark: #000000;
JSON
{
  "hex": "#312188",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 249.32,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3443,
    "c": 0.1606,
    "h": 280.9
  },
  "luminance": 0.03518
}

Semantic roles & 50–950 ramp

primary
#312188
secondary
#A7B84D
accent
#E444CB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #312188

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

Preview Lab → · Contrast checker → · Palette generator →

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