#31419E#31419E

#31419E is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.0% C 0.151 H 271.0°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#31419E
RGBrgb(49, 65, 158)
HSLhsl(231, 53%, 41%)
HSVhsv(231, 69%, 62%)
CMYKcmyk(69%, 58.9%, 0%, 38%)
CIE-LABlab(31.58, 25.53, -52.55)
CIE-LCHlch(31.58, 58.42, 295.91°)
OKLaboklab(42.01% 0.0026 -0.1514)
OKLCHoklch(42.01% 0.151 271)
XYZxyz(9.3264, 6.9013, 33.1817)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31419E #9E8E31
analogous
#31779E #31419E #58319E
triadic
#31419E #9E3141 #419E31
tetradic
#31419E #9E3177 #9E8E31 #319E58
square
#31419E #9E3177 #9E8E31 #319E58
split-complementary
#31419E #9E5831 #779E31
monochromatic
#141B41 #232E6F #31419E #4659C6 #7583D4

Accessibility & contrast

On white

8.82
#31419E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#31419E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31419E
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31419E#FFFFFF#000000##FFFFFF
##31419E1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA1
Deuteranopia (green-blind)
#00459C
Tritanopia (blue-blind)
#005869
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #31419e;
/* rgb */ color: rgb(49, 65, 158);
/* oklch */ color: oklch(42.0% 0.151 271.0);
Tailwind
colors: {
  custom: {
    50: '#7775bb',
    500: '#31419e',
    950: '#000000',
  },
}
SCSS
$custom: #31419e;
$custom-light: #7775bb;
$custom-dark: #000000;
JSON
{
  "hex": "#31419e",
  "rgb": {
    "r": 49,
    "g": 65,
    "b": 158
  },
  "hsl": {
    "h": 231.193,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42007,
    "c": 0.1514,
    "h": 271
  },
  "luminance": 0.06902
}

Semantic roles & 50–950 ramp

primary
#31419E
secondary
#BCB16E
accent
#C74CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #31419E

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

Preview Lab → · Contrast checker → · Palette generator →

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