#31376E#31376E

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

Color values

HEX#31376E
RGBrgb(49, 55, 110)
HSLhsl(234, 38%, 31%)
HSVhsv(234, 55%, 43%)
CMYKcmyk(55.5%, 50%, 0%, 56.9%)
CIE-LABlab(25.29, 14.78, -32.86)
CIE-LCHlch(25.29, 36.03, 294.22°)
OKLaboklab(36.16% 0.0098 -0.0936)
OKLCHoklch(36.16% 0.094 276)
XYZxyz(5.4464, 4.5108, 15.3325)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31376E #6E6831
analogous
#31556E #31376E #49316E
triadic
#31376E #6E3137 #376E31
tetradic
#31376E #6E3155 #6E6831 #316E49
square
#31376E #6E3155 #6E6831 #316E49
split-complementary
#31376E #6E4931 #556E31
monochromatic
#0B0D19 #1E2244 #31376E #444C98 #6169B9

Accessibility & contrast

On white

11.04
#31376E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31376E
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31376E#FFFFFF#000000##FFFFFF
##31376E1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3F70
Deuteranopia (green-blind)
#173A6D
Tritanopia (blue-blind)
#15434D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31376e;
/* rgb */ color: rgb(49, 55, 110);
/* oklch */ color: oklch(36.2% 0.094 276.0);
Tailwind
colors: {
  custom: {
    50: '#6e6d98',
    500: '#31376e',
    950: '#000000',
  },
}
SCSS
$custom: #31376e;
$custom-light: #6e6d98;
$custom-dark: #000000;
JSON
{
  "hex": "#31376e",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 110
  },
  "hsl": {
    "h": 234.098,
    "s": 38.365,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36163,
    "c": 0.09408,
    "h": 276
  },
  "luminance": 0.04511
}

Semantic roles & 50–950 ramp

primary
#31376E
secondary
#9F985C
accent
#C359CE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #31376E

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

Preview Lab → · Contrast checker → · Palette generator →

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