#31336D#31336D

#31336D is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.2% C 0.099 H 278.6°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#31336D
RGBrgb(49, 51, 109)
HSLhsl(238, 38%, 31%)
HSVhsv(238, 55%, 43%)
CMYKcmyk(55%, 53.2%, 0%, 57.3%)
CIE-LABlab(24.08, 17.18, -34.16)
CIE-LCHlch(24.08, 38.24, 296.70°)
OKLaboklab(35.22% 0.0147 -0.0974)
OKLCHoklch(35.22% 0.099 278.6)
XYZxyz(5.2099, 4.1244, 14.9866)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31336D #6D6B31
analogous
#31516D #31336D #4D316D
triadic
#31336D #6D3133 #336D31
tetradic
#31336D #6D3151 #6D6B31 #316D4D
square
#31336D #6D3151 #6D6B31 #316D4D
split-complementary
#31336D #6D4D31 #516D31
monochromatic
#0B0B19 #1E1F43 #31336D #444797 #6164B8

Accessibility & contrast

On white

11.51
#31336D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#31336D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31336D
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31336D#FFFFFF#000000##FFFFFF
##31336D1.0011.511.8311.51
#FFFFFF11.511.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163C6F
Deuteranopia (green-blind)
#0F376C
Tritanopia (blue-blind)
#17404B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #31336d;
/* rgb */ color: rgb(49, 51, 109);
/* oklch */ color: oklch(35.2% 0.099 278.6);
Tailwind
colors: {
  custom: {
    50: '#6e6a97',
    500: '#31336d',
    950: '#000000',
  },
}
SCSS
$custom: #31336d;
$custom-light: #6e6a97;
$custom-dark: #000000;
JSON
{
  "hex": "#31336d",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 109
  },
  "hsl": {
    "h": 238,
    "s": 37.975,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35224,
    "c": 0.09854,
    "h": 278.6
  },
  "luminance": 0.04125
}

Semantic roles & 50–950 ramp

primary
#31336D
secondary
#9E9C5C
accent
#CA5ACE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #31336D

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

Preview Lab → · Contrast checker → · Palette generator →

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