#31406D#31406D

#31406D is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.1% C 0.079 H 268.5°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#31406D
RGBrgb(49, 64, 109)
HSLhsl(225, 38%, 31%)
HSVhsv(225, 55%, 43%)
CMYKcmyk(55%, 41.3%, 0%, 57.3%)
CIE-LABlab(27.91, 8.26, -28.05)
CIE-LCHlch(27.91, 29.24, 286.40°)
OKLaboklab(38.14% -0.002 -0.0794)
OKLCHoklch(38.14% 0.079 268.5)
XYZxyz(5.8594, 5.4235, 15.2031)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31406D #6D5E31
analogous
#315E6D #31406D #40316D
triadic
#31406D #6D3140 #406D31
tetradic
#31406D #6D315E #6D5E31 #316D40
square
#31406D #6D315E #6D5E31 #316D40
split-complementary
#31406D #6D4031 #5E6D31
monochromatic
#0B0E19 #1E2743 #31406D #445997 #6176B8

Accessibility & contrast

On white

10.07
#31406D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31406D
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31406D#FFFFFF#000000##FFFFFF
##31406D1.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E456F
Deuteranopia (green-blind)
#273F6C
Tritanopia (blue-blind)
#154A51
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #31406d;
/* rgb */ color: rgb(49, 64, 109);
/* oklch */ color: oklch(38.1% 0.079 268.5);
Tailwind
colors: {
  custom: {
    50: '#6e7497',
    500: '#31406d',
    950: '#000000',
  },
}
SCSS
$custom: #31406d;
$custom-light: #6e7497;
$custom-dark: #000000;
JSON
{
  "hex": "#31406d",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 109
  },
  "hsl": {
    "h": 225,
    "s": 37.975,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38143,
    "c": 0.07944,
    "h": 268.5
  },
  "luminance": 0.05424
}

Semantic roles & 50–950 ramp

primary
#31406D
secondary
#9E8D5C
accent
#B15ACE
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080D
muted
#7A7B7E

Preview Lab

Preview with #31406D

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

Preview Lab → · Contrast checker → · Palette generator →

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