#31447B#31447B

#31447B is a dark, moderate blue. Relative luminance 0.062; OKLCH L 40.0% C 0.096 H 267.6°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#31447B
RGBrgb(49, 68, 123)
HSLhsl(225, 43%, 34%)
HSVhsv(225, 60%, 48%)
CMYKcmyk(60.2%, 44.7%, 0%, 51.8%)
CIE-LABlab(29.95, 10.59, -33.64)
CIE-LCHlch(29.95, 35.27, 287.47°)
OKLaboklab(39.99% -0.004 -0.0957)
OKLCHoklch(39.99% 0.096 267.6)
XYZxyz(6.9077, 6.2167, 19.5710)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31447B #7B6831
analogous
#31697B #31447B #43317B
triadic
#31447B #7B3144 #447B31
tetradic
#31447B #7B3169 #7B6831 #317B43
square
#31447B #7B3169 #7B6831 #317B43
split-complementary
#31447B #7B4331 #697B31
monochromatic
#0E1423 #202C4F #31447B #425CA7 #657DC2

Accessibility & contrast

On white

9.36
#31447B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#31447B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31447B
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31447B#FFFFFF#000000##FFFFFF
##31447B1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4A7D
Deuteranopia (green-blind)
#22437A
Tritanopia (blue-blind)
#005059
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #31447b;
/* rgb */ color: rgb(49, 68, 123);
/* oklch */ color: oklch(40.0% 0.096 267.6);
Tailwind
colors: {
  custom: {
    50: '#7077a1',
    500: '#31447b',
    950: '#000000',
  },
}
SCSS
$custom: #31447b;
$custom-light: #7077a1;
$custom-dark: #000000;
JSON
{
  "hex": "#31447b",
  "rgb": {
    "r": 49,
    "g": 68,
    "b": 123
  },
  "hsl": {
    "h": 224.595,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39988,
    "c": 0.09581,
    "h": 267.6
  },
  "luminance": 0.06217
}

Semantic roles & 50–950 ramp

primary
#31447B
secondary
#A9965F
accent
#B255D3
background
#F7F7FA
surface
#EDEDF3
border
#C8C8CD
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #31447B

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

Preview Lab → · Contrast checker → · Palette generator →

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