#31477B#31477B

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

Color values

HEX#31477B
RGBrgb(49, 71, 123)
HSLhsl(222, 43%, 34%)
HSVhsv(222, 60%, 48%)
CMYKcmyk(60.2%, 42.3%, 0%, 51.8%)
CIE-LABlab(30.85, 8.57, -32.21)
CIE-LCHlch(30.85, 33.33, 284.89°)
OKLaboklab(40.68% -0.0076 -0.0915)
OKLCHoklch(40.68% 0.092 265.3)
XYZxyz(7.0938, 6.5889, 19.6330)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31477B #7B6531
analogous
#316C7B #31477B #40317B
triadic
#31477B #7B3147 #477B31
tetradic
#31477B #7B316C #7B6531 #317B40
square
#31477B #7B316C #7B6531 #317B40
split-complementary
#31477B #7B4031 #6C7B31
monochromatic
#0E1423 #202E4F #31477B #4260A7 #6580C2

Accessibility & contrast

On white

9.06
#31477B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31477B
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31477B#FFFFFF#000000##FFFFFF
##31477B1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314C7D
Deuteranopia (green-blind)
#27457A
Tritanopia (blue-blind)
#00535B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #31477b;
/* rgb */ color: rgb(49, 71, 123);
/* oklch */ color: oklch(40.7% 0.092 265.3);
Tailwind
colors: {
  custom: {
    50: '#7079a1',
    500: '#31477b',
    950: '#000000',
  },
}
SCSS
$custom: #31477b;
$custom-light: #7079a1;
$custom-dark: #000000;
JSON
{
  "hex": "#31477b",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 123
  },
  "hsl": {
    "h": 222.162,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.4068,
    "c": 0.09181,
    "h": 265.3
  },
  "luminance": 0.0659
}

Semantic roles & 50–950 ramp

primary
#31477B
secondary
#A9935F
accent
#AD55D3
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#08090F
muted
#7B7B7E

Preview Lab

Preview with #31477B

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

Preview Lab → · Contrast checker → · Palette generator →

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