#312489#312489

#312489 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.159 H 280.2°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#312489
RGBrgb(49, 36, 137)
HSLhsl(248, 58%, 34%)
HSVhsv(248, 74%, 54%)
CMYKcmyk(64.2%, 73.7%, 0%, 46.3%)
CIE-LABlab(22.72, 36.62, -54.12)
CIE-LCHlch(22.72, 65.34, 304.08°)
OKLaboklab(34.97% 0.028 -0.1561)
OKLCHoklch(34.97% 0.159 280.2)
XYZxyz(6.4114, 3.7204, 24.0423)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312489 #7C8924
analogous
#244A89 #312489 #642489
triadic
#312489 #893124 #248931
tetradic
#312489 #89244A #7C8924 #248964
square
#312489 #89244A #7C8924 #248964
split-complementary
#312489 #896424 #4A8924
monochromatic
#0E0B28 #201759 #312489 #4231B9 #6555D2

Accessibility & contrast

On white

12.04
#312489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#312489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312489
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312489#FFFFFF#000000##FFFFFF
##3124891.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003287
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #312489;
/* rgb */ color: rgb(49, 36, 137);
/* oklch */ color: oklch(35.0% 0.159 280.2);
Tailwind
colors: {
  custom: {
    50: '#7560ac',
    500: '#312489',
    950: '#000000',
  },
}
SCSS
$custom: #312489;
$custom-light: #7560ac;
$custom-dark: #000000;
JSON
{
  "hex": "#312489",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 137
  },
  "hsl": {
    "h": 247.723,
    "s": 58.382,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34968,
    "c": 0.1586,
    "h": 280.2
  },
  "luminance": 0.03721
}

Semantic roles & 50–950 ramp

primary
#312489
secondary
#AAB752
accent
#E246CE
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312489

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

Preview Lab → · Contrast checker → · Palette generator →

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