#31377B#31377B

#31377B is a dark, moderate blue. Relative luminance 0.048; OKLCH L 37.1% C 0.114 H 275.6°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#31377B
RGBrgb(49, 55, 123)
HSLhsl(235, 43%, 34%)
HSVhsv(235, 60%, 48%)
CMYKcmyk(60.2%, 55.3%, 0%, 51.8%)
CIE-LABlab(26.20, 19.45, -39.66)
CIE-LCHlch(26.20, 44.17, 296.12°)
OKLaboklab(37.14% 0.0111 -0.1136)
OKLCHoklch(37.14% 0.114 275.6)
XYZxyz(6.2068, 4.8150, 19.3374)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31377B #7B7531
analogous
#315C7B #31377B #50317B
triadic
#31377B #7B3137 #377B31
tetradic
#31377B #7B315C #7B7531 #317B50
square
#31377B #7B315C #7B7531 #317B50
split-complementary
#31377B #7B5031 #5C7B31
monochromatic
#0E1023 #20234F #31377B #424BA7 #656CC2

Accessibility & contrast

On white

10.70
#31377B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#31377B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31377B
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31377B#FFFFFF#000000##FFFFFF
##31377B1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E417D
Deuteranopia (green-blind)
#003B7A
Tritanopia (blue-blind)
#014753
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #31377b;
/* rgb */ color: rgb(49, 55, 123);
/* oklch */ color: oklch(37.1% 0.114 275.6);
Tailwind
colors: {
  custom: {
    50: '#706da2',
    500: '#31377b',
    950: '#000000',
  },
}
SCSS
$custom: #31377b;
$custom-light: #706da2;
$custom-dark: #000000;
JSON
{
  "hex": "#31377b",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 123
  },
  "hsl": {
    "h": 235.135,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37139,
    "c": 0.11411,
    "h": 275.6
  },
  "luminance": 0.04815
}

Semantic roles & 50–950 ramp

primary
#31377B
secondary
#A9A35F
accent
#C955D3
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #31377B

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

Preview Lab → · Contrast checker → · Palette generator →

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