#31496B#31496B

#31496B is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.2% C 0.065 H 257.2°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#31496B
RGBrgb(49, 73, 107)
HSLhsl(215, 37%, 31%)
HSVhsv(215, 54%, 42%)
CMYKcmyk(54.2%, 31.8%, 0%, 58%)
CIE-LABlab(30.59, 1.55, -22.56)
CIE-LCHlch(30.59, 22.62, 273.94°)
OKLaboklab(40.19% -0.0144 -0.0634)
OKLCHoklch(40.19% 0.065 257.2)
XYZxyz(6.3021, 6.4791, 14.8256)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31496B #6B5331
analogous
#31666B #31496B #36316B
triadic
#31496B #6B3149 #496B31
tetradic
#31496B #6B3166 #6B5331 #316B36
square
#31496B #6B3166 #6B5331 #316B36
split-complementary
#31496B #6B3631 #666B31
monochromatic
#0B1017 #1E2C41 #31496B #446695 #6084B6

Accessibility & contrast

On white

9.15
#31496B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#31496B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31496B
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31496B#FFFFFF#000000##FFFFFF
##31496B1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C4B6C
Deuteranopia (green-blind)
#35466A
Tritanopia (blue-blind)
#145155
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #31496b;
/* rgb */ color: rgb(49, 73, 107);
/* oklch */ color: oklch(40.2% 0.065 257.2);
Tailwind
colors: {
  custom: {
    50: '#6d7b95',
    500: '#31496b',
    950: '#000000',
  },
}
SCSS
$custom: #31496b;
$custom-light: #6d7b95;
$custom-dark: #000000;
JSON
{
  "hex": "#31496b",
  "rgb": {
    "r": 49,
    "g": 73,
    "b": 107
  },
  "hsl": {
    "h": 215.172,
    "s": 37.179,
    "l": 30.588
  },
  "oklch": {
    "l": 0.40189,
    "c": 0.065,
    "h": 257.2
  },
  "luminance": 0.0648
}

Semantic roles & 50–950 ramp

primary
#31496B
secondary
#9C815C
accent
#9E5BCD
background
#F6F7F9
surface
#ECEDF1
border
#C7C8CB
text
#07090D
muted
#7A7B7E

Preview Lab

Preview with #31496B

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

Preview Lab → · Contrast checker → · Palette generator →

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