#31479D#31479D

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

Color values

HEX#31479D
RGBrgb(49, 71, 157)
HSLhsl(228, 52%, 40%)
HSVhsv(228, 69%, 62%)
CMYKcmyk(68.8%, 54.8%, 0%, 38.4%)
CIE-LABlab(33.12, 21.16, -49.45)
CIE-LCHlch(33.12, 53.79, 293.16°)
OKLaboklab(43.14% -0.0028 -0.1422)
OKLCHoklch(43.14% 0.142 268.9)
XYZxyz(9.6036, 7.5928, 32.8512)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31479D #9D8731
analogous
#317D9D #31479D #51319D
triadic
#31479D #9D3147 #479D31
tetradic
#31479D #9D317D #9D8731 #319D51
square
#31479D #9D317D #9D8731 #319D51
split-complementary
#31479D #9D5131 #7D9D31
monochromatic
#141D40 #22326E #31479D #4660C5 #7588D4

Accessibility & contrast

On white

8.34
#31479D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#31479D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31479D
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31479D#FFFFFF#000000##FFFFFF
##31479D1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0653A0
Deuteranopia (green-blind)
#00499B
Tritanopia (blue-blind)
#005C6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #31479d;
/* rgb */ color: rgb(49, 71, 157);
/* oklch */ color: oklch(43.1% 0.142 268.9);
Tailwind
colors: {
  custom: {
    50: '#7679bb',
    500: '#31479d',
    950: '#000000',
  },
}
SCSS
$custom: #31479d;
$custom-light: #7679bb;
$custom-dark: #000000;
JSON
{
  "hex": "#31479d",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 157
  },
  "hsl": {
    "h": 227.778,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43136,
    "c": 0.14221,
    "h": 268.9
  },
  "luminance": 0.07594
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31479D

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

Preview Lab → · Contrast checker → · Palette generator →

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