#31497C#31497C

#31497C is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.2% C 0.091 H 263.8°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#31497C
RGBrgb(49, 73, 124)
HSLhsl(221, 43%, 34%)
HSVhsv(221, 60%, 49%)
CMYKcmyk(60.5%, 41.1%, 0%, 51.4%)
CIE-LABlab(31.52, 7.59, -31.78)
CIE-LCHlch(31.52, 32.67, 283.44°)
OKLaboklab(41.21% -0.0097 -0.0902)
OKLCHoklch(41.21% 0.091 263.8)
XYZxyz(7.2860, 6.8727, 20.0075)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31497C #7C6431
analogous
#316F7C #31497C #3F317C
triadic
#31497C #7C3149 #497C31
tetradic
#31497C #7C316F #7C6431 #317C3F
square
#31497C #7C316F #7C6431 #317C3F
split-complementary
#31497C #7C3F31 #6F7C31
monochromatic
#0E1524 #202F50 #31497C #4263A8 #6583C2

Accessibility & contrast

On white

8.84
#31497C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#31497C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31497C
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31497C#FFFFFF#000000##FFFFFF
##31497C1.008.842.378.84
#FFFFFF8.841.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334E7E
Deuteranopia (green-blind)
#2A477B
Tritanopia (blue-blind)
#00545C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #31497c;
/* rgb */ color: rgb(49, 73, 124);
/* oklch */ color: oklch(41.2% 0.091 263.8);
Tailwind
colors: {
  custom: {
    50: '#707ba2',
    500: '#31497c',
    950: '#000000',
  },
}
SCSS
$custom: #31497c;
$custom-light: #707ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#31497c",
  "rgb": {
    "r": 49,
    "g": 73,
    "b": 124
  },
  "hsl": {
    "h": 220.8,
    "s": 43.353,
    "l": 33.922
  },
  "oklch": {
    "l": 0.41211,
    "c": 0.09074,
    "h": 263.8
  },
  "luminance": 0.06873
}

Semantic roles & 50–950 ramp

primary
#31497C
secondary
#AA925F
accent
#AB55D3
background
#F7F7FA
surface
#EDEDF3
border
#C8C8CD
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #31497C

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

Preview Lab → · Contrast checker → · Palette generator →

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