#31487B#31487B

#31487B is a dark, moderate blue. Relative luminance 0.067; OKLCH L 40.9% C 0.091 H 264.4°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#31487B
RGBrgb(49, 72, 123)
HSLhsl(221, 43%, 34%)
HSVhsv(221, 60%, 48%)
CMYKcmyk(60.2%, 41.5%, 0%, 51.8%)
CIE-LABlab(31.15, 7.90, -31.73)
CIE-LCHlch(31.15, 32.70, 283.97°)
OKLaboklab(40.91% -0.0088 -0.0901)
OKLCHoklch(40.91% 0.091 264.4)
XYZxyz(7.1579, 6.7172, 19.6544)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31487B #7B6431
analogous
#316D7B #31487B #3F317B
triadic
#31487B #7B3148 #487B31
tetradic
#31487B #7B316D #7B6431 #317B3F
square
#31487B #7B316D #7B6431 #317B3F
split-complementary
#31487B #7B3F31 #6D7B31
monochromatic
#0E1523 #202E4F #31487B #4262A7 #6582C2

Accessibility & contrast

On white

8.96
#31487B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#31487B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31487B
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31487B#FFFFFF#000000##FFFFFF
##31487B1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324D7D
Deuteranopia (green-blind)
#29467A
Tritanopia (blue-blind)
#00535B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #31487b;
/* rgb */ color: rgb(49, 72, 123);
/* oklch */ color: oklch(40.9% 0.091 264.4);
Tailwind
colors: {
  custom: {
    50: '#707aa1',
    500: '#31487b',
    950: '#000000',
  },
}
SCSS
$custom: #31487b;
$custom-light: #707aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#31487b",
  "rgb": {
    "r": 49,
    "g": 72,
    "b": 123
  },
  "hsl": {
    "h": 221.351,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40913,
    "c": 0.09052,
    "h": 264.4
  },
  "luminance": 0.06718
}

Semantic roles & 50–950 ramp

primary
#31487B
secondary
#A9925F
accent
#AC55D3
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#08090F
muted
#7B7B7E

Preview Lab

Preview with #31487B

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

Preview Lab → · Contrast checker → · Palette generator →

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