#31337D#31337D

#31337D is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.5% C 0.123 H 277.3°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#31337D
RGBrgb(49, 51, 125)
HSLhsl(238, 44%, 34%)
HSVhsv(238, 61%, 49%)
CMYKcmyk(60.8%, 59.2%, 0%, 51%)
CIE-LABlab(25.26, 22.89, -42.44)
CIE-LCHlch(25.26, 48.22, 298.34°)
OKLaboklab(36.49% 0.0155 -0.1218)
OKLCHoklch(36.49% 0.123 277.3)
XYZxyz(6.1509, 4.5008, 19.9427)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31337D #7D7B31
analogous
#31597D #31337D #55317D
triadic
#31337D #7D3133 #337D31
tetradic
#31337D #7D3159 #7D7B31 #317D55
square
#31337D #7D3159 #7D7B31 #317D55
split-complementary
#31337D #7D5531 #597D31
monochromatic
#0F0F25 #202151 #31337D #4245A9 #6668C3

Accessibility & contrast

On white

11.05
#31337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#31337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31337D
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31337D#FFFFFF#000000##FFFFFF
##31337D1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31337d;
/* rgb */ color: rgb(49, 51, 125);
/* oklch */ color: oklch(36.5% 0.123 277.3);
Tailwind
colors: {
  custom: {
    50: '#716aa3',
    500: '#31337d',
    950: '#000000',
  },
}
SCSS
$custom: #31337d;
$custom-light: #716aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#31337d",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 238.421,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36487,
    "c": 0.12277,
    "h": 277.3
  },
  "luminance": 0.04501
}

Semantic roles & 50–950 ramp

primary
#31337D
secondary
#AAA860
accent
#D054D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #31337D

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

Preview Lab → · Contrast checker → · Palette generator →

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