#312189#312189

#312189 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.162 H 280.7°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#312189
RGBrgb(49, 33, 137)
HSLhsl(249, 61%, 33%)
HSVhsv(249, 76%, 54%)
CMYKcmyk(64.2%, 75.9%, 0%, 46.3%)
CIE-LABlab(22.11, 38.34, -55.13)
CIE-LCHlch(22.11, 67.15, 304.82°)
OKLaboklab(34.53% 0.0302 -0.159)
OKLCHoklch(34.53% 0.162 280.7)
XYZxyz(6.3244, 3.5463, 24.0133)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312189 #798921
analogous
#214589 #312189 #652189
triadic
#312189 #893121 #218931
tetradic
#312189 #892145 #798921 #218965
square
#312189 #892145 #798921 #218965
split-complementary
#312189 #896521 #458921
monochromatic
#0E0926 #1F1558 #312189 #432DBA #6450D5

Accessibility & contrast

On white

12.29
#312189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#312189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312189
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312189#FFFFFF#000000##FFFFFF
##3121891.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#003187
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #312189;
/* rgb */ color: rgb(49, 33, 137);
/* oklch */ color: oklch(34.5% 0.162 280.7);
Tailwind
colors: {
  custom: {
    50: '#755fac',
    500: '#312189',
    950: '#000000',
  },
}
SCSS
$custom: #312189;
$custom-light: #755fac;
$custom-dark: #000000;
JSON
{
  "hex": "#312189",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 249.231,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34533,
    "c": 0.16187,
    "h": 280.7
  },
  "luminance": 0.03547
}

Semantic roles & 50–950 ramp

primary
#312189
secondary
#A8B84E
accent
#E444CC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #312189

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

Preview Lab → · Contrast checker → · Palette generator →

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