#31497D#31497D

#31497D is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.3% C 0.092 H 264.1°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#31497D
RGBrgb(49, 73, 125)
HSLhsl(221, 44%, 34%)
HSVhsv(221, 61%, 49%)
CMYKcmyk(60.8%, 41.6%, 0%, 51%)
CIE-LABlab(31.57, 7.96, -32.31)
CIE-LCHlch(31.57, 33.28, 283.83°)
OKLaboklab(41.28% -0.0095 -0.0918)
OKLCHoklch(41.28% 0.092 264.1)
XYZxyz(7.3496, 6.8981, 20.3422)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31497D #7D6531
analogous
#316F7D #31497D #3F317D
triadic
#31497D #7D3149 #497D31
tetradic
#31497D #7D316F #7D6531 #317D3F
square
#31497D #7D316F #7D6531 #317D3F
split-complementary
#31497D #7D3F31 #6F7D31
monochromatic
#0F1625 #202F51 #31497D #4263A9 #6683C3

Accessibility & contrast

On white

8.82
#31497D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#31497D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31497D
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31497D#FFFFFF#000000##FFFFFF
##31497D1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334E7F
Deuteranopia (green-blind)
#29477C
Tritanopia (blue-blind)
#00555D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #31497d;
/* rgb */ color: rgb(49, 73, 125);
/* oklch */ color: oklch(41.3% 0.092 264.1);
Tailwind
colors: {
  custom: {
    50: '#707ba3',
    500: '#31497d',
    950: '#000000',
  },
}
SCSS
$custom: #31497d;
$custom-light: #707ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#31497d",
  "rgb": {
    "r": 49,
    "g": 73,
    "b": 125
  },
  "hsl": {
    "h": 221.053,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41275,
    "c": 0.09226,
    "h": 264.1
  },
  "luminance": 0.06899
}

Semantic roles & 50–950 ramp

primary
#31497D
secondary
#AA9360
accent
#AB54D3
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #31497D

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

Preview Lab → · Contrast checker → · Palette generator →

#31497D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva