#31419C#31419C

#31419C is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.149 H 271.0°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#31419C
RGBrgb(49, 65, 156)
HSLhsl(231, 52%, 40%)
HSVhsv(231, 69%, 61%)
CMYKcmyk(68.6%, 58.3%, 0%, 38.8%)
CIE-LABlab(31.42, 24.79, -51.60)
CIE-LCHlch(31.42, 57.24, 295.66°)
OKLaboklab(41.84% 0.0025 -0.1486)
OKLCHoklch(41.84% 0.149 271)
XYZxyz(9.1556, 6.8330, 32.2824)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31419C #9C8C31
analogous
#31769C #31419C #56319C
triadic
#31419C #9C3141 #419C31
tetradic
#31419C #9C3176 #9C8C31 #319C56
square
#31419C #9C3176 #9C8C31 #319C56
split-complementary
#31419C #9C5631 #769C31
monochromatic
#141A3F #222E6D #31419C #4559C5 #7482D3

Accessibility & contrast

On white

8.87
#31419C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#31419C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31419C
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31419C#FFFFFF#000000##FFFFFF
##31419C1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9F
Deuteranopia (green-blind)
#00459A
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #31419c;
/* rgb */ color: rgb(49, 65, 156);
/* oklch */ color: oklch(41.8% 0.149 271.0);
Tailwind
colors: {
  custom: {
    50: '#7775ba',
    500: '#31419c',
    950: '#000000',
  },
}
SCSS
$custom: #31419c;
$custom-light: #7775ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31419c",
  "rgb": {
    "r": 49,
    "g": 65,
    "b": 156
  },
  "hsl": {
    "h": 231.028,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4184,
    "c": 0.14859,
    "h": 271
  },
  "luminance": 0.06834
}

Semantic roles & 50–950 ramp

primary
#31419C
secondary
#BBB06D
accent
#C64CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #31419C

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

Preview Lab → · Contrast checker → · Palette generator →

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