#31367D#31367D

#31367D is a dark, moderate blue. Relative luminance 0.048; OKLCH L 37.1% C 0.119 H 275.9°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#31367D
RGBrgb(49, 54, 125)
HSLhsl(236, 44%, 34%)
HSVhsv(236, 61%, 49%)
CMYKcmyk(60.8%, 56.8%, 0%, 51%)
CIE-LABlab(26.07, 20.85, -41.13)
CIE-LCHlch(26.07, 46.11, 296.89°)
OKLaboklab(37.09% 0.0123 -0.1179)
OKLCHoklch(37.09% 0.119 275.9)
XYZxyz(6.2863, 4.7715, 19.9878)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31367D #7D7831
analogous
#315C7D #31367D #52317D
triadic
#31367D #7D3136 #367D31
tetradic
#31367D #7D315C #7D7831 #317D52
square
#31367D #7D315C #7D7831 #317D52
split-complementary
#31367D #7D5231 #5C7D31
monochromatic
#0F1025 #202351 #31367D #4249A9 #666CC3

Accessibility & contrast

On white

10.74
#31367D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#31367D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31367D
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31367D#FFFFFF#000000##FFFFFF
##31367D1.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31367d;
/* rgb */ color: rgb(49, 54, 125);
/* oklch */ color: oklch(37.1% 0.119 275.9);
Tailwind
colors: {
  custom: {
    50: '#716da3',
    500: '#31367d',
    950: '#000000',
  },
}
SCSS
$custom: #31367d;
$custom-light: #716da3;
$custom-dark: #000000;
JSON
{
  "hex": "#31367d",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 125
  },
  "hsl": {
    "h": 236.053,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37091,
    "c": 0.11854,
    "h": 275.9
  },
  "luminance": 0.04772
}

Semantic roles & 50–950 ramp

primary
#31367D
secondary
#AAA560
accent
#CB54D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #31367D

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

Preview Lab → · Contrast checker → · Palette generator →

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