#31327B#31327B

#31327B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.1% C 0.121 H 277.9°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#31327B
RGBrgb(49, 50, 123)
HSLhsl(239, 43%, 34%)
HSVhsv(239, 60%, 48%)
CMYKcmyk(60.2%, 59.3%, 0%, 51.8%)
CIE-LABlab(24.84, 22.85, -41.86)
CIE-LCHlch(24.84, 47.69, 298.62°)
OKLaboklab(36.12% 0.0166 -0.1201)
OKLCHoklch(36.12% 0.121 277.9)
XYZxyz(5.9812, 4.3638, 19.2622)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31327B #7B7A31
analogous
#31577B #31327B #55317B
triadic
#31327B #7B3132 #327B31
tetradic
#31327B #7B3157 #7B7A31 #317B55
square
#31327B #7B3157 #7B7A31 #317B55
split-complementary
#31327B #7B5531 #577B31
monochromatic
#0E0E23 #20204F #31327B #4244A7 #6566C2

Accessibility & contrast

On white

11.21
#31327B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#31327B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31327B
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31327B#FFFFFF#000000##FFFFFF
##31327B1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#024351
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31327b;
/* rgb */ color: rgb(49, 50, 123);
/* oklch */ color: oklch(36.1% 0.121 277.9);
Tailwind
colors: {
  custom: {
    50: '#716aa2',
    500: '#31327b',
    950: '#000000',
  },
}
SCSS
$custom: #31327b;
$custom-light: #716aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#31327b",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 123
  },
  "hsl": {
    "h": 239.189,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36123,
    "c": 0.12124,
    "h": 277.9
  },
  "luminance": 0.04364
}

Semantic roles & 50–950 ramp

primary
#31327B
secondary
#A9A85F
accent
#D155D3
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #31327B

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

Preview Lab → · Contrast checker → · Palette generator →

#31327B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva