#31376D#31376D

#31376D is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.1% C 0.092 H 276.0°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#31376D
RGBrgb(49, 55, 109)
HSLhsl(234, 38%, 31%)
HSVhsv(234, 55%, 43%)
CMYKcmyk(55%, 49.5%, 0%, 57.3%)
CIE-LABlab(25.23, 14.42, -32.32)
CIE-LCHlch(25.23, 35.39, 294.05°)
OKLaboklab(36.09% 0.0096 -0.092)
OKLCHoklch(36.09% 0.093 276)
XYZxyz(5.3923, 4.4891, 15.0474)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31376D #6D6731
analogous
#31556D #31376D #49316D
triadic
#31376D #6D3137 #376D31
tetradic
#31376D #6D3155 #6D6731 #316D49
square
#31376D #6D3155 #6D6731 #316D49
split-complementary
#31376D #6D4931 #556D31
monochromatic
#0B0C19 #1E2243 #31376D #444C97 #6169B8

Accessibility & contrast

On white

11.07
#31376D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31376D
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31376D#FFFFFF#000000##FFFFFF
##31376D1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3E6F
Deuteranopia (green-blind)
#18396C
Tritanopia (blue-blind)
#16434C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31376d;
/* rgb */ color: rgb(49, 55, 109);
/* oklch */ color: oklch(36.1% 0.092 276.0);
Tailwind
colors: {
  custom: {
    50: '#6e6d97',
    500: '#31376d',
    950: '#000000',
  },
}
SCSS
$custom: #31376d;
$custom-light: #6e6d97;
$custom-dark: #000000;
JSON
{
  "hex": "#31376d",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 109
  },
  "hsl": {
    "h": 234,
    "s": 37.975,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36092,
    "c": 0.0925,
    "h": 276
  },
  "luminance": 0.04489
}

Semantic roles & 50–950 ramp

primary
#31376D
secondary
#9E975C
accent
#C25ACE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #31376D

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

Preview Lab → · Contrast checker → · Palette generator →

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