#312F8B#312F8B

#312F8B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.148 H 277.3°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#312F8B
RGBrgb(49, 47, 139)
HSLhsl(241, 49%, 36%)
HSVhsv(241, 66%, 55%)
CMYKcmyk(64.7%, 66.2%, 0%, 45.5%)
CIE-LABlab(25.41, 30.51, -50.96)
CIE-LCHlch(25.41, 59.39, 300.91°)
OKLaboklab(36.96% 0.0188 -0.1469)
OKLCHoklch(36.96% 0.148 277.3)
XYZxyz(6.9418, 4.5495, 24.9334)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312F8B #898B2F
analogous
#2F5B8B #312F8B #5F2F8B
triadic
#312F8B #8B312F #2F8B31
tetradic
#312F8B #8B2F5B #898B2F #2F8B5F
square
#312F8B #8B2F5B #898B2F #2F8B5F
split-complementary
#312F8B #8B5F2F #5B8B2F
monochromatic
#111030 #21205D #312F8B #413EB9 #6B68CC

Accessibility & contrast

On white

10.99
#312F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#312F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312F8B
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312F8B#FFFFFF#000000##FFFFFF
##312F8B1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #312f8b;
/* rgb */ color: rgb(49, 47, 139);
/* oklch */ color: oklch(37.0% 0.148 277.3);
Tailwind
colors: {
  custom: {
    50: '#7468ae',
    500: '#312f8b',
    950: '#000000',
  },
}
SCSS
$custom: #312f8b;
$custom-light: #7468ae;
$custom-dark: #000000;
JSON
{
  "hex": "#312f8b",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 241.304,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36961,
    "c": 0.14805,
    "h": 277.3
  },
  "luminance": 0.0455
}

Semantic roles & 50–950 ramp

primary
#312F8B
secondary
#B1B363
accent
#D94FD6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #312F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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