#31387E#31387E

#31387E is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.6% C 0.117 H 275.0°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#31387E
RGBrgb(49, 56, 126)
HSLhsl(235, 44%, 34%)
HSVhsv(235, 61%, 49%)
CMYKcmyk(61.1%, 55.6%, 0%, 50.6%)
CIE-LABlab(26.70, 19.85, -40.75)
CIE-LCHlch(26.70, 45.32, 295.98°)
OKLaboklab(37.58% 0.0101 -0.1168)
OKLCHoklch(37.58% 0.117 275)
XYZxyz(6.4455, 4.9872, 20.3576)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31387E #7E7731
analogous
#315F7E #31387E #51317E
triadic
#31387E #7E3138 #387E31
tetradic
#31387E #7E315F #7E7731 #317E51
square
#31387E #7E315F #7E7731 #317E51
split-complementary
#31387E #7E5131 #5F7E31
monochromatic
#0F1126 #202452 #31387E #424CAA #666EC3

Accessibility & contrast

On white

10.51
#31387E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#31387E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31387E
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31387E#FFFFFF#000000##FFFFFF
##31387E1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4380
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#004855
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #31387e;
/* rgb */ color: rgb(49, 56, 126);
/* oklch */ color: oklch(37.6% 0.117 275.0);
Tailwind
colors: {
  custom: {
    50: '#716ea4',
    500: '#31387e',
    950: '#000000',
  },
}
SCSS
$custom: #31387e;
$custom-light: #716ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#31387e",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 126
  },
  "hsl": {
    "h": 234.545,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37582,
    "c": 0.1172,
    "h": 275
  },
  "luminance": 0.04988
}

Semantic roles & 50–950 ramp

primary
#31387E
secondary
#ABA460
accent
#C854D4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #31387E

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

Preview Lab → · Contrast checker → · Palette generator →

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