#312F87#312F87

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

Color values

HEX#312F87
RGBrgb(49, 47, 135)
HSLhsl(241, 48%, 36%)
HSVhsv(241, 65%, 53%)
CMYKcmyk(63.7%, 65.2%, 0%, 47.1%)
CIE-LABlab(25.06, 29.10, -49.04)
CIE-LCHlch(25.06, 57.03, 300.68°)
OKLaboklab(36.6% 0.0191 -0.1412)
OKLCHoklch(36.6% 0.143 277.7)
XYZxyz(6.6549, 4.4348, 23.4223)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312F87 #85872F
analogous
#2F5987 #312F87 #5D2F87
triadic
#312F87 #87312F #2F8731
tetradic
#312F87 #872F59 #85872F #2F875D
square
#312F87 #872F59 #85872F #2F875D
split-complementary
#312F87 #875D2F #59872F
monochromatic
#100F2C #211F5A #312F87 #413FB4 #6966CA

Accessibility & contrast

On white

11.13
#312F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#312F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312F87
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312F87#FFFFFF#000000##FFFFFF
##312F871.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #312f87;
/* rgb */ color: rgb(49, 47, 135);
/* oklch */ color: oklch(36.6% 0.143 277.7);
Tailwind
colors: {
  custom: {
    50: '#7368ab',
    500: '#312f87',
    950: '#000000',
  },
}
SCSS
$custom: #312f87;
$custom-light: #7368ab;
$custom-dark: #000000;
JSON
{
  "hex": "#312f87",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 241.364,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36596,
    "c": 0.14252,
    "h": 277.7
  },
  "luminance": 0.04435
}

Semantic roles & 50–950 ramp

primary
#312F87
secondary
#AFB161
accent
#D850D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #312F87

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

Preview Lab → · Contrast checker → · Palette generator →

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