#31456E#31456E

#31456E is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.4% C 0.074 H 263.6°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#31456E
RGBrgb(49, 69, 110)
HSLhsl(220, 38%, 31%)
HSVhsv(220, 55%, 43%)
CMYKcmyk(55.5%, 37.3%, 0%, 56.9%)
CIE-LABlab(29.50, 5.24, -26.18)
CIE-LCHlch(29.50, 26.70, 281.33°)
OKLaboklab(39.39% -0.0083 -0.0739)
OKLCHoklch(39.39% 0.074 263.6)
XYZxyz(6.2083, 6.0346, 15.5865)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31456E #6E5A31
analogous
#31636E #31456E #3B316E
triadic
#31456E #6E3145 #456E31
tetradic
#31456E #6E3163 #6E5A31 #316E3B
square
#31456E #6E3163 #6E5A31 #316E3B
split-complementary
#31456E #6E3B31 #636E31
monochromatic
#0B1019 #1E2A44 #31456E #446098 #617EB9

Accessibility & contrast

On white

9.52
#31456E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#31456E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31456E
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31456E#FFFFFF#000000##FFFFFF
##31456E1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354970
Deuteranopia (green-blind)
#2E436D
Tritanopia (blue-blind)
#124E54
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #31456e;
/* rgb */ color: rgb(49, 69, 110);
/* oklch */ color: oklch(39.4% 0.074 263.6);
Tailwind
colors: {
  custom: {
    50: '#6e7898',
    500: '#31456e',
    950: '#000000',
  },
}
SCSS
$custom: #31456e;
$custom-light: #6e7898;
$custom-dark: #000000;
JSON
{
  "hex": "#31456e",
  "rgb": {
    "r": 49,
    "g": 69,
    "b": 110
  },
  "hsl": {
    "h": 220.328,
    "s": 38.365,
    "l": 31.176
  },
  "oklch": {
    "l": 0.39391,
    "c": 0.07435,
    "h": 263.6
  },
  "luminance": 0.06035
}

Semantic roles & 50–950 ramp

primary
#31456E
secondary
#9F895C
accent
#A859CE
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080D
muted
#7A7B7E

Preview Lab

Preview with #31456E

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

Preview Lab → · Contrast checker → · Palette generator →

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