#31437B#31437B

#31437B is a dark, moderate blue. Relative luminance 0.061; OKLCH L 39.8% C 0.097 H 268.3°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#31437B
RGBrgb(49, 67, 123)
HSLhsl(225, 43%, 34%)
HSVhsv(225, 60%, 48%)
CMYKcmyk(60.2%, 45.5%, 0%, 51.8%)
CIE-LABlab(29.66, 11.26, -34.12)
CIE-LCHlch(29.66, 35.93, 288.27°)
OKLaboklab(39.76% -0.0028 -0.0971)
OKLCHoklch(39.76% 0.097 268.3)
XYZxyz(6.8477, 6.0968, 19.5510)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31437B #7B6931
analogous
#31687B #31437B #44317B
triadic
#31437B #7B3143 #437B31
tetradic
#31437B #7B3168 #7B6931 #317B44
square
#31437B #7B3168 #7B6931 #317B44
split-complementary
#31437B #7B4431 #687B31
monochromatic
#0E1323 #202B4F #31437B #425BA7 #657BC2

Accessibility & contrast

On white

9.46
#31437B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#31437B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31437B
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31437B#FFFFFF#000000##FFFFFF
##31437B1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A497D
Deuteranopia (green-blind)
#20437A
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #31437b;
/* rgb */ color: rgb(49, 67, 123);
/* oklch */ color: oklch(39.8% 0.097 268.3);
Tailwind
colors: {
  custom: {
    50: '#7076a1',
    500: '#31437b',
    950: '#000000',
  },
}
SCSS
$custom: #31437b;
$custom-light: #7076a1;
$custom-dark: #000000;
JSON
{
  "hex": "#31437b",
  "rgb": {
    "r": 49,
    "g": 67,
    "b": 123
  },
  "hsl": {
    "h": 225.405,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3976,
    "c": 0.09718,
    "h": 268.3
  },
  "luminance": 0.06097
}

Semantic roles & 50–950 ramp

primary
#31437B
secondary
#A9975F
accent
#B455D3
background
#F7F7FA
surface
#EDEDF3
border
#C8C8CD
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #31437B

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

Preview Lab → · Contrast checker → · Palette generator →

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