#312E89#312E89

#312E89 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.6% C 0.147 H 277.8°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#312E89
RGBrgb(49, 46, 137)
HSLhsl(242, 50%, 36%)
HSVhsv(242, 66%, 54%)
CMYKcmyk(64.2%, 66.4%, 0%, 46.3%)
CIE-LABlab(24.99, 30.45, -50.40)
CIE-LCHlch(24.99, 58.89, 301.14°)
OKLaboklab(36.6% 0.0198 -0.1452)
OKLCHoklch(36.6% 0.147 277.8)
XYZxyz(6.7575, 4.4126, 24.1577)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312E89 #86892E
analogous
#2E5889 #312E89 #5E2E89
triadic
#312E89 #89312E #2E8931
tetradic
#312E89 #892E58 #86892E #2E895E
square
#312E89 #892E58 #86892E #2E895E
split-complementary
#312E89 #895E2E #58892E
monochromatic
#100F2D #211F5B #312E89 #413DB7 #6966CC

Accessibility & contrast

On white

11.15
#312E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#312E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312E89
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312E89#FFFFFF#000000##FFFFFF
##312E891.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8C
Deuteranopia (green-blind)
#003787
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #312e89;
/* rgb */ color: rgb(49, 46, 137);
/* oklch */ color: oklch(36.6% 0.147 277.8);
Tailwind
colors: {
  custom: {
    50: '#7467ac',
    500: '#312e89',
    950: '#000000',
  },
}
SCSS
$custom: #312e89;
$custom-light: #7467ac;
$custom-dark: #000000;
JSON
{
  "hex": "#312e89",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 137
  },
  "hsl": {
    "h": 241.978,
    "s": 49.727,
    "l": 35.882
  },
  "oklch": {
    "l": 0.366,
    "c": 0.14658,
    "h": 277.8
  },
  "luminance": 0.04413
}

Semantic roles & 50–950 ramp

primary
#312E89
secondary
#B0B260
accent
#D94FD5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #312E89

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

Preview Lab → · Contrast checker → · Palette generator →

#312E89 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva