#312089#312089

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

Color values

HEX#312089
RGBrgb(49, 32, 137)
HSLhsl(250, 62%, 33%)
HSVhsv(250, 77%, 54%)
CMYKcmyk(64.2%, 76.6%, 0%, 46.3%)
CIE-LABlab(21.91, 38.90, -55.45)
CIE-LCHlch(21.91, 67.73, 305.05°)
OKLaboklab(34.39% 0.0309 -0.16)
OKLCHoklch(34.39% 0.163 280.9)
XYZxyz(6.2971, 3.4917, 24.0042)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312089 #788920
analogous
#204489 #312089 #652089
triadic
#312089 #893120 #208931
tetradic
#312089 #892044 #788920 #208965
square
#312089 #892044 #788920 #208965
split-complementary
#312089 #896520 #448920
monochromatic
#0E0926 #1F1457 #312089 #432CBB #644ED6

Accessibility & contrast

On white

12.36
#312089 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312089
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312089#FFFFFF#000000##FFFFFF
##3120891.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312089;
/* rgb */ color: rgb(49, 32, 137);
/* oklch */ color: oklch(34.4% 0.163 280.9);
Tailwind
colors: {
  custom: {
    50: '#755eac',
    500: '#312089',
    950: '#000000',
  },
}
SCSS
$custom: #312089;
$custom-light: #755eac;
$custom-dark: #000000;
JSON
{
  "hex": "#312089",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 137
  },
  "hsl": {
    "h": 249.714,
    "s": 62.13,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34394,
    "c": 0.16293,
    "h": 280.9
  },
  "luminance": 0.03492
}

Semantic roles & 50–950 ramp

primary
#312089
secondary
#A7B94C
accent
#E543CB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #312089

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

Preview Lab → · Contrast checker → · Palette generator →

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