#31376C#31376C

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

Color values

HEX#31376C
RGBrgb(49, 55, 108)
HSLhsl(234, 38%, 31%)
HSVhsv(234, 55%, 42%)
CMYKcmyk(54.6%, 49.1%, 0%, 57.6%)
CIE-LABlab(25.16, 14.07, -31.79)
CIE-LCHlch(25.16, 34.76, 293.87°)
OKLaboklab(36.02% 0.0095 -0.0904)
OKLCHoklch(36.02% 0.091 276)
XYZxyz(5.3387, 4.4677, 14.7655)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31376C #6C6631
analogous
#31546C #31376C #48316C
triadic
#31376C #6C3137 #376C31
tetradic
#31376C #6C3154 #6C6631 #316C48
square
#31376C #6C3154 #6C6631 #316C48
split-complementary
#31376C #6C4831 #546C31
monochromatic
#0B0C18 #1E2242 #31376C #444C96 #6069B7

Accessibility & contrast

On white

11.09
#31376C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31376C
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31376C#FFFFFF#000000##FFFFFF
##31376C1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203E6E
Deuteranopia (green-blind)
#19396B
Tritanopia (blue-blind)
#17424C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31376c;
/* rgb */ color: rgb(49, 55, 108);
/* oklch */ color: oklch(36.0% 0.091 276.0);
Tailwind
colors: {
  custom: {
    50: '#6e6d96',
    500: '#31376c',
    950: '#000000',
  },
}
SCSS
$custom: #31376c;
$custom-light: #6e6d96;
$custom-dark: #000000;
JSON
{
  "hex": "#31376c",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 108
  },
  "hsl": {
    "h": 233.898,
    "s": 37.58,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36021,
    "c": 0.09092,
    "h": 276
  },
  "luminance": 0.04468
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31376C

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

Preview Lab → · Contrast checker → · Palette generator →

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