#31406B#31406B

#31406B is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.0% C 0.076 H 268.1°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#31406B
RGBrgb(49, 64, 107)
HSLhsl(224, 37%, 31%)
HSVhsv(224, 54%, 42%)
CMYKcmyk(54.2%, 40.2%, 0%, 58%)
CIE-LABlab(27.79, 7.55, -26.96)
CIE-LCHlch(27.79, 28.00, 285.65°)
OKLaboklab(38.02% -0.0025 -0.0762)
OKLCHoklch(38.02% 0.076 268.1)
XYZxyz(5.7530, 5.3809, 14.6425)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31406B #6B5C31
analogous
#315D6B #31406B #3F316B
triadic
#31406B #6B3140 #406B31
tetradic
#31406B #6B315D #6B5C31 #316B3F
square
#31406B #6B315D #6B5C31 #316B3F
split-complementary
#31406B #6B3F31 #5D6B31
monochromatic
#0B0E17 #1E2741 #31406B #445995 #6076B6

Accessibility & contrast

On white

10.11
#31406B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#31406B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31406B
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31406B#FFFFFF#000000##FFFFFF
##31406B1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F446D
Deuteranopia (green-blind)
#293F6A
Tritanopia (blue-blind)
#174950
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #31406b;
/* rgb */ color: rgb(49, 64, 107);
/* oklch */ color: oklch(38.0% 0.076 268.1);
Tailwind
colors: {
  custom: {
    50: '#6d7495',
    500: '#31406b',
    950: '#000000',
  },
}
SCSS
$custom: #31406b;
$custom-light: #6d7495;
$custom-dark: #000000;
JSON
{
  "hex": "#31406b",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 107
  },
  "hsl": {
    "h": 224.483,
    "s": 37.179,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38016,
    "c": 0.07626,
    "h": 268.1
  },
  "luminance": 0.05381
}

Semantic roles & 50–950 ramp

primary
#31406B
secondary
#9C8B5C
accent
#B05BCD
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080D
muted
#7A7B7E

Preview Lab

Preview with #31406B

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

Preview Lab → · Contrast checker → · Palette generator →

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