#31478D#31478D

#31478D is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.9% C 0.119 H 267.9°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#31478D
RGBrgb(49, 71, 141)
HSLhsl(226, 48%, 37%)
HSVhsv(226, 65%, 55%)
CMYKcmyk(65.2%, 49.6%, 0%, 44.7%)
CIE-LABlab(31.99, 15.19, -41.53)
CIE-LCHlch(31.99, 44.22, 290.10°)
OKLaboklab(41.92% -0.0044 -0.1189)
OKLCHoklch(41.92% 0.119 267.9)
XYZxyz(8.3259, 7.0818, 26.1223)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31478D #8D7731
analogous
#31758D #31478D #49318D
triadic
#31478D #8D3147 #478D31
tetradic
#31478D #8D3175 #8D7731 #318D49
square
#31478D #8D3175 #8D7731 #318D49
split-complementary
#31478D #8D4931 #758D31
monochromatic
#111932 #213060 #31478D #415EBA #6C83CC

Accessibility & contrast

On white

8.69
#31478D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31478D
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31478D#FFFFFF#000000##FFFFFF
##31478D1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31478d;
/* rgb */ color: rgb(49, 71, 141);
/* oklch */ color: oklch(41.9% 0.119 267.9);
Tailwind
colors: {
  custom: {
    50: '#7379af',
    500: '#31478d',
    950: '#000000',
  },
}
SCSS
$custom: #31478d;
$custom-light: #7379af;
$custom-dark: #000000;
JSON
{
  "hex": "#31478d",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 141
  },
  "hsl": {
    "h": 225.652,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41922,
    "c": 0.11895,
    "h": 267.9
  },
  "luminance": 0.07083
}

Semantic roles & 50–950 ramp

primary
#31478D
secondary
#B4A166
accent
#B750D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #31478D

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

Preview Lab → · Contrast checker → · Palette generator →

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