#31377E#31377E

#31377E is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.4% C 0.119 H 275.4°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#31377E
RGBrgb(49, 55, 126)
HSLhsl(235, 44%, 34%)
HSVhsv(235, 61%, 49%)
CMYKcmyk(61.1%, 56.3%, 0%, 50.6%)
CIE-LABlab(26.42, 20.53, -41.19)
CIE-LCHlch(26.42, 46.02, 296.50°)
OKLaboklab(37.38% 0.0112 -0.1181)
OKLCHoklch(37.38% 0.119 275.4)
XYZxyz(6.3975, 4.8912, 20.3416)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31377E #7E7831
analogous
#315E7E #31377E #52317E
triadic
#31377E #7E3137 #377E31
tetradic
#31377E #7E315E #7E7831 #317E52
square
#31377E #7E315E #7E7831 #317E52
split-complementary
#31377E #7E5231 #5E7E31
monochromatic
#0F1126 #202452 #31377E #424AAA #666DC3

Accessibility & contrast

On white

10.61
#31377E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#31377E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31377E
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31377E#FFFFFF#000000##FFFFFF
##31377E1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074280
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#004855
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #31377e;
/* rgb */ color: rgb(49, 55, 126);
/* oklch */ color: oklch(37.4% 0.119 275.4);
Tailwind
colors: {
  custom: {
    50: '#716da4',
    500: '#31377e',
    950: '#000000',
  },
}
SCSS
$custom: #31377e;
$custom-light: #716da4;
$custom-dark: #000000;
JSON
{
  "hex": "#31377e",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 126
  },
  "hsl": {
    "h": 235.325,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37376,
    "c": 0.11861,
    "h": 275.4
  },
  "luminance": 0.04892
}

Semantic roles & 50–950 ramp

primary
#31377E
secondary
#ABA560
accent
#CA54D4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #31377E

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

Preview Lab → · Contrast checker → · Palette generator →

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