#31487F#31487F

#31487F is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.2% C 0.097 H 265.3°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#31487F
RGBrgb(49, 72, 127)
HSLhsl(222, 44%, 35%)
HSVhsv(222, 61%, 50%)
CMYKcmyk(61.4%, 43.3%, 0%, 50.2%)
CIE-LABlab(31.39, 9.35, -33.84)
CIE-LCHlch(31.39, 35.11, 285.45°)
OKLaboklab(41.17% -0.0079 -0.0963)
OKLCHoklch(41.17% 0.097 265.3)
XYZxyz(7.4134, 6.8194, 21.0002)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31487F #7F6831
analogous
#316F7F #31487F #41317F
triadic
#31487F #7F3148 #487F31
tetradic
#31487F #7F316F #7F6831 #317F41
square
#31487F #7F316F #7F6831 #317F41
split-complementary
#31487F #7F4131 #6F7F31
monochromatic
#0F1627 #202F53 #31487F #4261AB #6682C4

Accessibility & contrast

On white

8.88
#31487F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#31487F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31487F
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31487F#FFFFFF#000000##FFFFFF
##31487F1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304E81
Deuteranopia (green-blind)
#25477E
Tritanopia (blue-blind)
#00545D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #31487f;
/* rgb */ color: rgb(49, 72, 127);
/* oklch */ color: oklch(41.2% 0.097 265.3);
Tailwind
colors: {
  custom: {
    50: '#707aa4',
    500: '#31487f',
    950: '#000000',
  },
}
SCSS
$custom: #31487f;
$custom-light: #707aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#31487f",
  "rgb": {
    "r": 49,
    "g": 72,
    "b": 127
  },
  "hsl": {
    "h": 222.308,
    "s": 44.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41174,
    "c": 0.0966,
    "h": 265.3
  },
  "luminance": 0.0682
}

Semantic roles & 50–950 ramp

primary
#31487F
secondary
#AB9560
accent
#AE54D4
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #31487F

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

Preview Lab → · Contrast checker → · Palette generator →

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