#312F8E#312F8E

#312F8E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.152 H 277.0°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#312F8E
RGBrgb(49, 47, 142)
HSLhsl(241, 50%, 37%)
HSVhsv(241, 67%, 56%)
CMYKcmyk(65.5%, 66.9%, 0%, 44.3%)
CIE-LABlab(25.68, 31.56, -52.38)
CIE-LCHlch(25.68, 61.16, 301.07°)
OKLaboklab(37.24% 0.0185 -0.151)
OKLCHoklch(37.24% 0.152 277)
XYZxyz(7.1640, 4.6384, 26.1037)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312F8E #8C8E2F
analogous
#2F5D8E #312F8E #612F8E
triadic
#312F8E #8E312F #2F8E31
tetradic
#312F8E #8E2F5D #8C8E2F #2F8E61
square
#312F8E #8E2F5D #8C8E2F #2F8E61
split-complementary
#312F8E #8E612F #5D8E2F
monochromatic
#111132 #212060 #312F8E #413EBC #6C6ACE

Accessibility & contrast

On white

10.89
#312F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#312F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312F8E
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312F8E#FFFFFF#000000##FFFFFF
##312F8E1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #312f8e;
/* rgb */ color: rgb(49, 47, 142);
/* oklch */ color: oklch(37.2% 0.152 277.0);
Tailwind
colors: {
  custom: {
    50: '#7568b0',
    500: '#312f8e',
    950: '#000000',
  },
}
SCSS
$custom: #312f8e;
$custom-light: #7568b0;
$custom-dark: #000000;
JSON
{
  "hex": "#312f8e",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 241.263,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37239,
    "c": 0.15216,
    "h": 277
  },
  "luminance": 0.04639
}

Semantic roles & 50–950 ramp

primary
#312F8E
secondary
#B3B564
accent
#DA4ED7
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #312F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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