#31327D#31327D

#31327D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.124 H 277.7°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#31327D
RGBrgb(49, 50, 125)
HSLhsl(239, 44%, 34%)
HSVhsv(239, 61%, 49%)
CMYKcmyk(60.8%, 60%, 0%, 51%)
CIE-LABlab(25.00, 23.56, -42.87)
CIE-LCHlch(25.00, 48.92, 298.79°)
OKLaboklab(36.29% 0.0166 -0.1231)
OKLCHoklch(36.29% 0.124 277.7)
XYZxyz(6.1077, 4.4144, 19.9283)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31327D #7D7C31
analogous
#31587D #31327D #56317D
triadic
#31327D #7D3132 #327D31
tetradic
#31327D #7D3158 #7D7C31 #317D56
square
#31327D #7D3158 #7D7C31 #317D56
split-complementary
#31327D #7D5631 #587D31
monochromatic
#0F0F25 #202051 #31327D #4244A9 #6667C3

Accessibility & contrast

On white

11.15
#31327D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#31327D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31327D
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31327D#FFFFFF#000000##FFFFFF
##31327D1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31327d;
/* rgb */ color: rgb(49, 50, 125);
/* oklch */ color: oklch(36.3% 0.124 277.7);
Tailwind
colors: {
  custom: {
    50: '#716aa3',
    500: '#31327d',
    950: '#000000',
  },
}
SCSS
$custom: #31327d;
$custom-light: #716aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#31327d",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 125
  },
  "hsl": {
    "h": 239.211,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36289,
    "c": 0.12418,
    "h": 277.7
  },
  "luminance": 0.04415
}

Semantic roles & 50–950 ramp

primary
#31327D
secondary
#AAA960
accent
#D254D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #31327D

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

Preview Lab → · Contrast checker → · Palette generator →

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