#31496F#31496F

#31496F is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.4% C 0.071 H 259.3°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#31496F
RGBrgb(49, 73, 111)
HSLhsl(217, 39%, 31%)
HSVhsv(217, 56%, 44%)
CMYKcmyk(55.9%, 34.2%, 0%, 56.5%)
CIE-LABlab(30.80, 2.94, -24.77)
CIE-LCHlch(30.80, 24.94, 276.78°)
OKLaboklab(40.42% -0.0132 -0.0698)
OKLCHoklch(40.42% 0.071 259.3)
XYZxyz(6.5174, 6.5653, 15.9596)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31496F #6F5731
analogous
#31686F #31496F #38316F
triadic
#31496F #6F3149 #496F31
tetradic
#31496F #6F3168 #6F5731 #316F38
square
#31496F #6F3168 #6F5731 #316F38
split-complementary
#31496F #6F3831 #686F31
monochromatic
#0C111A #1E2D45 #31496F #446599 #6183B9

Accessibility & contrast

On white

9.08
#31496F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#31496F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31496F
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31496F#FFFFFF#000000##FFFFFF
##31496F1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A4C71
Deuteranopia (green-blind)
#32466E
Tritanopia (blue-blind)
#105157
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #31496f;
/* rgb */ color: rgb(49, 73, 111);
/* oklch */ color: oklch(40.4% 0.071 259.3);
Tailwind
colors: {
  custom: {
    50: '#6e7b98',
    500: '#31496f',
    950: '#000000',
  },
}
SCSS
$custom: #31496f;
$custom-light: #6e7b98;
$custom-dark: #000000;
JSON
{
  "hex": "#31496f",
  "rgb": {
    "r": 49,
    "g": 73,
    "b": 111
  },
  "hsl": {
    "h": 216.774,
    "s": 38.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40417,
    "c": 0.07101,
    "h": 259.3
  },
  "luminance": 0.06566
}

Semantic roles & 50–950 ramp

primary
#31496F
secondary
#A0865C
accent
#A159CF
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090D
muted
#7A7B7E

Preview Lab

Preview with #31496F

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

Preview Lab → · Contrast checker → · Palette generator →

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