#31479E#31479E

#31479E is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.2% C 0.144 H 268.9°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#31479E
RGBrgb(49, 71, 158)
HSLhsl(228, 53%, 41%)
HSVhsv(228, 69%, 62%)
CMYKcmyk(69%, 55.1%, 0%, 38%)
CIE-LABlab(33.19, 21.53, -49.94)
CIE-LCHlch(33.19, 54.38, 293.32°)
OKLaboklab(43.22% -0.0027 -0.1436)
OKLCHoklch(43.22% 0.144 268.9)
XYZxyz(9.6893, 7.6271, 33.3027)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31479E #9E8831
analogous
#317D9E #31479E #51319E
triadic
#31479E #9E3147 #479E31
tetradic
#31479E #9E317D #9E8831 #319E51
square
#31479E #9E317D #9E8831 #319E51
split-complementary
#31479E #9E5131 #7D9E31
monochromatic
#141D41 #23326F #31479E #4660C6 #7588D4

Accessibility & contrast

On white

8.31
#31479E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#31479E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31479E
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31479E#FFFFFF#000000##FFFFFF
##31479E1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0353A1
Deuteranopia (green-blind)
#00499C
Tritanopia (blue-blind)
#005C6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #31479e;
/* rgb */ color: rgb(49, 71, 158);
/* oklch */ color: oklch(43.2% 0.144 268.9);
Tailwind
colors: {
  custom: {
    50: '#7779bb',
    500: '#31479e',
    950: '#000000',
  },
}
SCSS
$custom: #31479e;
$custom-light: #7779bb;
$custom-dark: #000000;
JSON
{
  "hex": "#31479e",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 158
  },
  "hsl": {
    "h": 227.89,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43215,
    "c": 0.14363,
    "h": 268.9
  },
  "luminance": 0.07628
}

Semantic roles & 50–950 ramp

primary
#31479E
secondary
#BCAD6E
accent
#BF4CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #31479E

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

Preview Lab → · Contrast checker → · Palette generator →

#31479E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva