#31376B#31376B

#31376B is a dark, moderate blue. Relative luminance 0.044; OKLCH L 35.9% C 0.089 H 276.0°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#31376B
RGBrgb(49, 55, 107)
HSLhsl(234, 37%, 31%)
HSVhsv(234, 54%, 42%)
CMYKcmyk(54.2%, 48.6%, 0%, 58%)
CIE-LABlab(25.10, 13.71, -31.25)
CIE-LCHlch(25.10, 34.12, 293.69°)
OKLaboklab(35.95% 0.0093 -0.0888)
OKLCHoklch(35.95% 0.089 276)
XYZxyz(5.2858, 4.4466, 14.4868)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31376B #6B6531
analogous
#31546B #31376B #48316B
triadic
#31376B #6B3137 #376B31
tetradic
#31376B #6B3154 #6B6531 #316B48
square
#31376B #6B3154 #6B6531 #316B48
split-complementary
#31376B #6B4831 #546B31
monochromatic
#0B0C17 #1E2141 #31376B #444D95 #6069B6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31376B#FFFFFF#000000##FFFFFF
##31376B1.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)
#203E6D
Deuteranopia (green-blind)
#1B396A
Tritanopia (blue-blind)
#18424B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31376b;
/* rgb */ color: rgb(49, 55, 107);
/* oklch */ color: oklch(35.9% 0.089 276.0);
Tailwind
colors: {
  custom: {
    50: '#6e6d96',
    500: '#31376b',
    950: '#000000',
  },
}
SCSS
$custom: #31376b;
$custom-light: #6e6d96;
$custom-dark: #000000;
JSON
{
  "hex": "#31376b",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 107
  },
  "hsl": {
    "h": 233.793,
    "s": 37.179,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3595,
    "c": 0.08934,
    "h": 276
  },
  "luminance": 0.04447
}

Semantic roles & 50–950 ramp

primary
#31376B
secondary
#9C955C
accent
#C15BCD
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #31376B

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

Preview Lab → · Contrast checker → · Palette generator →

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