#312D89#312D89

#312D89 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.4% C 0.148 H 278.0°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#312D89
RGBrgb(49, 45, 137)
HSLhsl(243, 51%, 36%)
HSVhsv(243, 67%, 54%)
CMYKcmyk(64.2%, 67.2%, 0%, 46.3%)
CIE-LABlab(24.75, 31.09, -50.80)
CIE-LCHlch(24.75, 59.56, 301.47°)
OKLaboklab(36.43% 0.0207 -0.1464)
OKLCHoklch(36.43% 0.148 278)
XYZxyz(6.7189, 4.3354, 24.1448)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312D89 #85892D
analogous
#2D5789 #312D89 #5F2D89
triadic
#312D89 #89312D #2D8931
tetradic
#312D89 #892D57 #85892D #2D895F
square
#312D89 #892D57 #85892D #2D895F
split-complementary
#312D89 #895F2D #57892D
monochromatic
#100F2D #211E5B #312D89 #413CB7 #6964CC

Accessibility & contrast

On white

11.25
#312D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#312D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312D89
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312D89#FFFFFF#000000##FFFFFF
##312D891.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.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: #312d89;
/* rgb */ color: rgb(49, 45, 137);
/* oklch */ color: oklch(36.4% 0.148 278.0);
Tailwind
colors: {
  custom: {
    50: '#7466ac',
    500: '#312d89',
    950: '#000000',
  },
}
SCSS
$custom: #312d89;
$custom-light: #7466ac;
$custom-dark: #000000;
JSON
{
  "hex": "#312d89",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 137
  },
  "hsl": {
    "h": 242.609,
    "s": 50.549,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36425,
    "c": 0.14783,
    "h": 278
  },
  "luminance": 0.04336
}

Semantic roles & 50–950 ramp

primary
#312D89
secondary
#AFB35F
accent
#DA4ED4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #312D89

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

Preview Lab → · Contrast checker → · Palette generator →

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