#31477C#31477C

#31477C is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.7% C 0.093 H 265.5°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#31477C
RGBrgb(49, 71, 124)
HSLhsl(222, 43%, 34%)
HSVhsv(222, 60%, 49%)
CMYKcmyk(60.5%, 42.7%, 0%, 51.4%)
CIE-LABlab(30.91, 8.93, -32.74)
CIE-LCHlch(30.91, 33.94, 285.26°)
OKLaboklab(40.74% -0.0074 -0.093)
OKLCHoklch(40.74% 0.093 265.5)
XYZxyz(7.1567, 6.6141, 19.9644)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31477C #7C6631
analogous
#316D7C #31477C #41317C
triadic
#31477C #7C3147 #477C31
tetradic
#31477C #7C316D #7C6631 #317C41
square
#31477C #7C316D #7C6631 #317C41
split-complementary
#31477C #7C4131 #6D7C31
monochromatic
#0E1524 #202E50 #31477C #4260A8 #6580C2

Accessibility & contrast

On white

9.04
#31477C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#31477C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31477C
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31477C#FFFFFF#000000##FFFFFF
##31477C1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304C7E
Deuteranopia (green-blind)
#26467B
Tritanopia (blue-blind)
#00535B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #31477c;
/* rgb */ color: rgb(49, 71, 124);
/* oklch */ color: oklch(40.7% 0.093 265.5);
Tailwind
colors: {
  custom: {
    50: '#7079a2',
    500: '#31477c',
    950: '#000000',
  },
}
SCSS
$custom: #31477c;
$custom-light: #7079a2;
$custom-dark: #000000;
JSON
{
  "hex": "#31477c",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 124
  },
  "hsl": {
    "h": 222.4,
    "s": 43.353,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40745,
    "c": 0.09334,
    "h": 265.5
  },
  "luminance": 0.06615
}

Semantic roles & 50–950 ramp

primary
#31477C
secondary
#AA945F
accent
#AE55D3
background
#F7F7FA
surface
#EDEDF3
border
#C8C8CD
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #31477C

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

Preview Lab → · Contrast checker → · Palette generator →

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