#312889#312889

#312889 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.154 H 279.3°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#312889
RGBrgb(49, 40, 137)
HSLhsl(246, 55%, 35%)
HSVhsv(246, 71%, 54%)
CMYKcmyk(64.2%, 70.8%, 0%, 46.3%)
CIE-LABlab(23.59, 34.22, -52.69)
CIE-LCHlch(23.59, 62.83, 303.00°)
OKLaboklab(35.59% 0.0249 -0.1519)
OKLCHoklch(35.59% 0.154 279.3)
XYZxyz(6.5393, 3.9762, 24.0849)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312889 #808928
analogous
#285089 #312889 #622889
triadic
#312889 #893128 #288931
tetradic
#312889 #892850 #808928 #288962
square
#312889 #892850 #808928 #288962
split-complementary
#312889 #896228 #508928
monochromatic
#0F0C2A #201A5A #312889 #4236B8 #675CCF

Accessibility & contrast

On white

11.70
#312889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#312889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312889
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312889#FFFFFF#000000##FFFFFF
##3128891.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003487
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #312889;
/* rgb */ color: rgb(49, 40, 137);
/* oklch */ color: oklch(35.6% 0.154 279.3);
Tailwind
colors: {
  custom: {
    50: '#7563ac',
    500: '#312889',
    950: '#000000',
  },
}
SCSS
$custom: #312889;
$custom-light: #7563ac;
$custom-dark: #000000;
JSON
{
  "hex": "#312889",
  "rgb": {
    "r": 49,
    "g": 40,
    "b": 137
  },
  "hsl": {
    "h": 245.567,
    "s": 54.802,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35589,
    "c": 0.15397,
    "h": 279.3
  },
  "luminance": 0.03977
}

Semantic roles & 50–950 ramp

primary
#312889
secondary
#ACB558
accent
#DE4AD0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312889

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

Preview Lab → · Contrast checker → · Palette generator →

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