#312F89#312F89

#312F89 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.145 H 277.5°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#312F89
RGBrgb(49, 47, 137)
HSLhsl(241, 49%, 36%)
HSVhsv(241, 66%, 54%)
CMYKcmyk(64.2%, 65.7%, 0%, 46.3%)
CIE-LABlab(25.23, 29.80, -50.01)
CIE-LCHlch(25.23, 58.21, 300.80°)
OKLaboklab(36.78% 0.0189 -0.1441)
OKLCHoklch(36.78% 0.145 277.5)
XYZxyz(6.7970, 4.4916, 24.1708)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312F89 #87892F
analogous
#2F5A89 #312F89 #5E2F89
triadic
#312F89 #89312F #2F8931
tetradic
#312F89 #892F5A #87892F #2F895E
square
#312F89 #892F5A #87892F #2F895E
split-complementary
#312F89 #895E2F #5A892F
monochromatic
#10102E #211F5B #312F89 #413FB7 #6A67CB

Accessibility & contrast

On white

11.06
#312F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#312F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312F89
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312F89#FFFFFF#000000##FFFFFF
##312F891.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408C
Deuteranopia (green-blind)
#003887
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #312f89;
/* rgb */ color: rgb(49, 47, 137);
/* oklch */ color: oklch(36.8% 0.145 277.5);
Tailwind
colors: {
  custom: {
    50: '#7468ac',
    500: '#312f89',
    950: '#000000',
  },
}
SCSS
$custom: #312f89;
$custom-light: #7468ac;
$custom-dark: #000000;
JSON
{
  "hex": "#312f89",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 137
  },
  "hsl": {
    "h": 241.333,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36778,
    "c": 0.1453,
    "h": 277.5
  },
  "luminance": 0.04492
}

Semantic roles & 50–950 ramp

primary
#312F89
secondary
#B0B262
accent
#D84FD5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #312F89

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

Preview Lab → · Contrast checker → · Palette generator →

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