#31478E#31478E

#31478E is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.0% C 0.120 H 268.0°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#31478E
RGBrgb(49, 71, 142)
HSLhsl(226, 49%, 37%)
HSVhsv(226, 65%, 56%)
CMYKcmyk(65.5%, 50%, 0%, 44.3%)
CIE-LABlab(32.06, 15.57, -42.03)
CIE-LCHlch(32.06, 44.82, 290.32°)
OKLaboklab(42% -0.0043 -0.1203)
OKLCHoklch(42% 0.12 268)
XYZxyz(8.4007, 7.1117, 26.5159)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31478E #8E7831
analogous
#31768E #31478E #49318E
triadic
#31478E #8E3147 #478E31
tetradic
#31478E #8E3176 #8E7831 #318E49
square
#31478E #8E3176 #8E7831 #318E49
split-complementary
#31478E #8E4931 #768E31
monochromatic
#121A33 #213061 #31478E #415EBB #6D83CD

Accessibility & contrast

On white

8.67
#31478E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#31478E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31478E
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31478E#FFFFFF#000000##FFFFFF
##31478E1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215091
Deuteranopia (green-blind)
#0C478D
Tritanopia (blue-blind)
#005763
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #31478e;
/* rgb */ color: rgb(49, 71, 142);
/* oklch */ color: oklch(42.0% 0.120 268.0);
Tailwind
colors: {
  custom: {
    50: '#7379af',
    500: '#31478e',
    950: '#000000',
  },
}
SCSS
$custom: #31478e;
$custom-light: #7379af;
$custom-dark: #000000;
JSON
{
  "hex": "#31478e",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 142
  },
  "hsl": {
    "h": 225.806,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41995,
    "c": 0.12043,
    "h": 268
  },
  "luminance": 0.07112
}

Semantic roles & 50–950 ramp

primary
#31478E
secondary
#B4A267
accent
#B850D8
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #31478E

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

Preview Lab → · Contrast checker → · Palette generator →

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