#31457D#31457D

#31457D is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.4% C 0.098 H 267.2°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#31457D
RGBrgb(49, 69, 125)
HSLhsl(224, 44%, 34%)
HSVhsv(224, 61%, 49%)
CMYKcmyk(60.8%, 44.8%, 0%, 51%)
CIE-LABlab(30.37, 10.64, -34.22)
CIE-LCHlch(30.37, 35.84, 287.27°)
OKLaboklab(40.35% -0.0048 -0.0974)
OKLCHoklch(40.35% 0.098 267.2)
XYZxyz(7.0952, 6.3893, 20.2574)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31457D #7D6931
analogous
#316B7D #31457D #43317D
triadic
#31457D #7D3145 #457D31
tetradic
#31457D #7D316B #7D6931 #317D43
square
#31457D #7D316B #7D6931 #317D43
split-complementary
#31457D #7D4331 #6B7D31
monochromatic
#0F1425 #202D51 #31457D #425DA9 #667EC3

Accessibility & contrast

On white

9.22
#31457D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#31457D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31457D
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31457D#FFFFFF#000000##FFFFFF
##31457D1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4B7F
Deuteranopia (green-blind)
#22447C
Tritanopia (blue-blind)
#00515B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #31457d;
/* rgb */ color: rgb(49, 69, 125);
/* oklch */ color: oklch(40.4% 0.098 267.2);
Tailwind
colors: {
  custom: {
    50: '#7078a3',
    500: '#31457d',
    950: '#000000',
  },
}
SCSS
$custom: #31457d;
$custom-light: #7078a3;
$custom-dark: #000000;
JSON
{
  "hex": "#31457d",
  "rgb": {
    "r": 49,
    "g": 69,
    "b": 125
  },
  "hsl": {
    "h": 224.211,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40351,
    "c": 0.09754,
    "h": 267.2
  },
  "luminance": 0.0639
}

Semantic roles & 50–950 ramp

primary
#31457D
secondary
#AA9760
accent
#B254D3
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #31457D

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

Preview Lab → · Contrast checker → · Palette generator →

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