#31377F#31377F

#31377F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.5% C 0.120 H 275.4°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#31377F
RGBrgb(49, 55, 127)
HSLhsl(235, 44%, 35%)
HSVhsv(235, 61%, 50%)
CMYKcmyk(61.4%, 56.7%, 0%, 50.2%)
CIE-LABlab(26.50, 20.89, -41.70)
CIE-LCHlch(26.50, 46.64, 296.61°)
OKLaboklab(37.46% 0.0113 -0.1196)
OKLCHoklch(37.46% 0.12 275.4)
XYZxyz(6.4623, 4.9172, 20.6831)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31377F #7F7931
analogous
#315E7F #31377F #52317F
triadic
#31377F #7F3137 #377F31
tetradic
#31377F #7F315E #7F7931 #317F52
square
#31377F #7F315E #7F7931 #317F52
split-complementary
#31377F #7F5231 #5E7F31
monochromatic
#0F1127 #202453 #31377F #424AAB #666EC4

Accessibility & contrast

On white

10.59
#31377F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31377F
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31377F#FFFFFF#000000##FFFFFF
##31377F1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054281
Deuteranopia (green-blind)
#003B7E
Tritanopia (blue-blind)
#004855
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #31377f;
/* rgb */ color: rgb(49, 55, 127);
/* oklch */ color: oklch(37.5% 0.120 275.4);
Tailwind
colors: {
  custom: {
    50: '#716da5',
    500: '#31377f',
    950: '#000000',
  },
}
SCSS
$custom: #31377f;
$custom-light: #716da5;
$custom-dark: #000000;
JSON
{
  "hex": "#31377f",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 127
  },
  "hsl": {
    "h": 235.385,
    "s": 44.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37456,
    "c": 0.1201,
    "h": 275.4
  },
  "luminance": 0.04918
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31377F

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

Preview Lab → · Contrast checker → · Palette generator →

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