#31456B#31456B

#31456B is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.2% C 0.070 H 262.5°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#31456B
RGBrgb(49, 69, 107)
HSLhsl(219, 37%, 31%)
HSVhsv(219, 54%, 42%)
CMYKcmyk(54.2%, 35.5%, 0%, 58%)
CIE-LABlab(29.34, 4.19, -24.53)
CIE-LCHlch(29.34, 24.88, 279.70°)
OKLaboklab(39.21% -0.0091 -0.0691)
OKLCHoklch(39.21% 0.07 262.5)
XYZxyz(6.0477, 5.9703, 14.7408)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31456B #6B5731
analogous
#31626B #31456B #3A316B
triadic
#31456B #6B3145 #456B31
tetradic
#31456B #6B3162 #6B5731 #316B3A
square
#31456B #6B3162 #6B5731 #316B3A
split-complementary
#31456B #6B3A31 #626B31
monochromatic
#0B0F17 #1E2A41 #31456B #446095 #607EB6

Accessibility & contrast

On white

9.57
#31456B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#31456B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31456B
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31456B#FFFFFF#000000##FFFFFF
##31456B1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36486D
Deuteranopia (green-blind)
#2F436A
Tritanopia (blue-blind)
#154D53
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #31456b;
/* rgb */ color: rgb(49, 69, 107);
/* oklch */ color: oklch(39.2% 0.070 262.5);
Tailwind
colors: {
  custom: {
    50: '#6d7895',
    500: '#31456b',
    950: '#000000',
  },
}
SCSS
$custom: #31456b;
$custom-light: #6d7895;
$custom-dark: #000000;
JSON
{
  "hex": "#31456b",
  "rgb": {
    "r": 49,
    "g": 69,
    "b": 107
  },
  "hsl": {
    "h": 219.31,
    "s": 37.179,
    "l": 30.588
  },
  "oklch": {
    "l": 0.39212,
    "c": 0.06969,
    "h": 262.5
  },
  "luminance": 0.05971
}

Semantic roles & 50–950 ramp

primary
#31456B
secondary
#9C865C
accent
#A65BCD
background
#F6F7F9
surface
#ECEDF1
border
#C7C8CB
text
#07080D
muted
#7A7B7E

Preview Lab

Preview with #31456B

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

Preview Lab → · Contrast checker → · Palette generator →

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