#31377D#31377D

#31377D is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.3% C 0.117 H 275.5°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#31377D
RGBrgb(49, 55, 125)
HSLhsl(235, 44%, 34%)
HSVhsv(235, 61%, 49%)
CMYKcmyk(60.8%, 56%, 0%, 51%)
CIE-LABlab(26.35, 20.17, -40.68)
CIE-LCHlch(26.35, 45.41, 296.37°)
OKLaboklab(37.3% 0.0112 -0.1166)
OKLCHoklch(37.3% 0.117 275.5)
XYZxyz(6.3333, 4.8655, 20.0035)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31377D #7D7731
analogous
#315D7D #31377D #51317D
triadic
#31377D #7D3137 #377D31
tetradic
#31377D #7D315D #7D7731 #317D51
square
#31377D #7D315D #7D7731 #317D51
split-complementary
#31377D #7D5131 #5D7D31
monochromatic
#0F1025 #202451 #31377D #424AA9 #666DC3

Accessibility & contrast

On white

10.64
#31377D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#31377D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31377D
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31377D#FFFFFF#000000##FFFFFF
##31377D1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09427F
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#004754
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #31377d;
/* rgb */ color: rgb(49, 55, 125);
/* oklch */ color: oklch(37.3% 0.117 275.5);
Tailwind
colors: {
  custom: {
    50: '#716da3',
    500: '#31377d',
    950: '#000000',
  },
}
SCSS
$custom: #31377d;
$custom-light: #716da3;
$custom-dark: #000000;
JSON
{
  "hex": "#31377d",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 125
  },
  "hsl": {
    "h": 235.263,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37296,
    "c": 0.11711,
    "h": 275.5
  },
  "luminance": 0.04866
}

Semantic roles & 50–950 ramp

primary
#31377D
secondary
#AAA460
accent
#C954D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #31377D

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

Preview Lab → · Contrast checker → · Palette generator →

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