#31477A#31477A

#31477A is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.6% C 0.090 H 265.0°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#31477A
RGBrgb(49, 71, 122)
HSLhsl(222, 43%, 34%)
HSVhsv(222, 60%, 48%)
CMYKcmyk(59.8%, 41.8%, 0%, 52.2%)
CIE-LABlab(30.79, 8.20, -31.68)
CIE-LCHlch(30.79, 32.72, 284.52°)
OKLaboklab(40.62% -0.0078 -0.0899)
OKLCHoklch(40.62% 0.09 265)
XYZxyz(7.0315, 6.5640, 19.3050)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31477A #7A6431
analogous
#316B7A #31477A #3F317A
triadic
#31477A #7A3147 #477A31
tetradic
#31477A #7A316B #7A6431 #317A3F
square
#31477A #7A316B #7A6431 #317A3F
split-complementary
#31477A #7A3F31 #6B7A31
monochromatic
#0E1423 #1F2E4E #31477A #4360A6 #6480C1

Accessibility & contrast

On white

9.08
#31477A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#31477A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31477A
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31477A#FFFFFF#000000##FFFFFF
##31477A1.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)
#314C7C
Deuteranopia (green-blind)
#284579
Tritanopia (blue-blind)
#00525A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #31477a;
/* rgb */ color: rgb(49, 71, 122);
/* oklch */ color: oklch(40.6% 0.090 265.0);
Tailwind
colors: {
  custom: {
    50: '#7079a1',
    500: '#31477a',
    950: '#000000',
  },
}
SCSS
$custom: #31477a;
$custom-light: #7079a1;
$custom-dark: #000000;
JSON
{
  "hex": "#31477a",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 122
  },
  "hsl": {
    "h": 221.918,
    "s": 42.69,
    "l": 33.529
  },
  "oklch": {
    "l": 0.40615,
    "c": 0.09029,
    "h": 265
  },
  "luminance": 0.06565
}

Semantic roles & 50–950 ramp

primary
#31477A
secondary
#A8925E
accent
#AD55D2
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#08090F
muted
#7B7B7E

Preview Lab

Preview with #31477A

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

Preview Lab → · Contrast checker → · Palette generator →

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