#31437E#31437E

#31437E is a dark, moderate blue. Relative luminance 0.062; OKLCH L 40.0% C 0.102 H 268.7°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#31437E
RGBrgb(49, 67, 126)
HSLhsl(226, 44%, 34%)
HSVhsv(226, 61%, 49%)
CMYKcmyk(61.1%, 46.8%, 0%, 50.6%)
CIE-LABlab(29.84, 12.36, -35.69)
CIE-LCHlch(29.84, 37.77, 289.10°)
OKLaboklab(39.97% -0.0023 -0.1018)
OKLCHoklch(39.97% 0.102 268.7)
XYZxyz(7.0384, 6.1731, 20.5552)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31437E #7E6C31
analogous
#316A7E #31437E #46317E
triadic
#31437E #7E3143 #437E31
tetradic
#31437E #7E316A #7E6C31 #317E46
square
#31437E #7E316A #7E6C31 #317E46
split-complementary
#31437E #7E4631 #6A7E31
monochromatic
#0F1426 #202C52 #31437E #425AAA #667CC3

Accessibility & contrast

On white

9.40
#31437E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#31437E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31437E
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31437E#FFFFFF#000000##FFFFFF
##31437E1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284A80
Deuteranopia (green-blind)
#1D437D
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #31437e;
/* rgb */ color: rgb(49, 67, 126);
/* oklch */ color: oklch(40.0% 0.102 268.7);
Tailwind
colors: {
  custom: {
    50: '#7076a4',
    500: '#31437e',
    950: '#000000',
  },
}
SCSS
$custom: #31437e;
$custom-light: #7076a4;
$custom-dark: #000000;
JSON
{
  "hex": "#31437e",
  "rgb": {
    "r": 49,
    "g": 67,
    "b": 126
  },
  "hsl": {
    "h": 225.974,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39966,
    "c": 0.10179,
    "h": 268.7
  },
  "luminance": 0.06174
}

Semantic roles & 50–950 ramp

primary
#31437E
secondary
#AB9960
accent
#B654D4
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #31437E

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

Preview Lab → · Contrast checker → · Palette generator →

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