#31376F#31376F

#31376F is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.2% C 0.096 H 275.9°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#31376F
RGBrgb(49, 55, 111)
HSLhsl(234, 39%, 31%)
HSVhsv(234, 56%, 44%)
CMYKcmyk(55.9%, 50.5%, 0%, 56.5%)
CIE-LABlab(25.36, 15.13, -33.39)
CIE-LCHlch(25.36, 36.66, 294.38°)
OKLaboklab(36.24% 0.0099 -0.0951)
OKLCHoklch(36.24% 0.096 275.9)
XYZxyz(5.5011, 4.5327, 15.6209)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31376F #6F6931
analogous
#31566F #31376F #4A316F
triadic
#31376F #6F3137 #376F31
tetradic
#31376F #6F3156 #6F6931 #316F4A
square
#31376F #6F3156 #6F6931 #316F4A
split-complementary
#31376F #6F4A31 #566F31
monochromatic
#0C0D1A #1E2245 #31376F #444C99 #616AB9

Accessibility & contrast

On white

11.01
#31376F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#31376F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31376F
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31376F#FFFFFF#000000##FFFFFF
##31376F1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3F71
Deuteranopia (green-blind)
#163A6E
Tritanopia (blue-blind)
#14434D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31376f;
/* rgb */ color: rgb(49, 55, 111);
/* oklch */ color: oklch(36.2% 0.096 275.9);
Tailwind
colors: {
  custom: {
    50: '#6e6d99',
    500: '#31376f',
    950: '#000000',
  },
}
SCSS
$custom: #31376f;
$custom-light: #6e6d99;
$custom-dark: #000000;
JSON
{
  "hex": "#31376f",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 111
  },
  "hsl": {
    "h": 234.194,
    "s": 38.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36235,
    "c": 0.09565,
    "h": 275.9
  },
  "luminance": 0.04533
}

Semantic roles & 50–950 ramp

primary
#31376F
secondary
#A0995C
accent
#C359CF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #31376F

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

Preview Lab → · Contrast checker → · Palette generator →

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