#31337B#31337B

#31337B is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.3% C 0.120 H 277.4°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#31337B
RGBrgb(49, 51, 123)
HSLhsl(238, 43%, 34%)
HSVhsv(238, 60%, 48%)
CMYKcmyk(60.2%, 58.5%, 0%, 51.8%)
CIE-LABlab(25.11, 22.17, -41.43)
CIE-LCHlch(25.11, 46.99, 298.15°)
OKLaboklab(36.32% 0.0155 -0.1188)
OKLCHoklch(36.32% 0.12 277.4)
XYZxyz(6.0245, 4.4503, 19.2766)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31337B #7B7931
analogous
#31587B #31337B #54317B
triadic
#31337B #7B3133 #337B31
tetradic
#31337B #7B3158 #7B7931 #317B54
square
#31337B #7B3158 #7B7931 #317B54
split-complementary
#31337B #7B5431 #587B31
monochromatic
#0E0F23 #20214F #31337B #4245A7 #6567C2

Accessibility & contrast

On white

11.11
#31337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#31337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31337B
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31337B#FFFFFF#000000##FFFFFF
##31337B1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7D
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#024451
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31337b;
/* rgb */ color: rgb(49, 51, 123);
/* oklch */ color: oklch(36.3% 0.120 277.4);
Tailwind
colors: {
  custom: {
    50: '#716aa2',
    500: '#31337b',
    950: '#000000',
  },
}
SCSS
$custom: #31337b;
$custom-light: #716aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#31337b",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 238.378,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36322,
    "c": 0.11982,
    "h": 277.4
  },
  "luminance": 0.04451
}

Semantic roles & 50–950 ramp

primary
#31337B
secondary
#A9A75F
accent
#CF55D3
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #31337B

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

Preview Lab → · Contrast checker → · Palette generator →

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