#31456D#31456D

#31456D is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.3% C 0.073 H 263.2°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#31456D
RGBrgb(49, 69, 109)
HSLhsl(220, 38%, 31%)
HSVhsv(220, 55%, 43%)
CMYKcmyk(55%, 36.7%, 0%, 57.3%)
CIE-LABlab(29.45, 4.89, -25.63)
CIE-LCHlch(29.45, 26.09, 280.81°)
OKLaboklab(39.33% -0.0086 -0.0723)
OKLCHoklch(39.33% 0.073 263.2)
XYZxyz(6.1541, 6.0129, 15.3013)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31456D #6D5931
analogous
#31636D #31456D #3B316D
triadic
#31456D #6D3145 #456D31
tetradic
#31456D #6D3163 #6D5931 #316D3B
square
#31456D #6D3163 #6D5931 #316D3B
split-complementary
#31456D #6D3B31 #636D31
monochromatic
#0B1019 #1E2A43 #31456D #446097 #617EB8

Accessibility & contrast

On white

9.53
#31456D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#31456D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31456D
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31456D#FFFFFF#000000##FFFFFF
##31456D1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35486F
Deuteranopia (green-blind)
#2E436C
Tritanopia (blue-blind)
#134E54
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #31456d;
/* rgb */ color: rgb(49, 69, 109);
/* oklch */ color: oklch(39.3% 0.073 263.2);
Tailwind
colors: {
  custom: {
    50: '#6d7897',
    500: '#31456d',
    950: '#000000',
  },
}
SCSS
$custom: #31456d;
$custom-light: #6d7897;
$custom-dark: #000000;
JSON
{
  "hex": "#31456d",
  "rgb": {
    "r": 49,
    "g": 69,
    "b": 109
  },
  "hsl": {
    "h": 220,
    "s": 37.975,
    "l": 30.98
  },
  "oklch": {
    "l": 0.39331,
    "c": 0.0728,
    "h": 263.2
  },
  "luminance": 0.06013
}

Semantic roles & 50–950 ramp

primary
#31456D
secondary
#9E885C
accent
#A75ACE
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080D
muted
#7A7B7E

Preview Lab

Preview with #31456D

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

Preview Lab → · Contrast checker → · Palette generator →

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