#31419B#31419B

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

Color values

HEX#31419B
RGBrgb(49, 65, 155)
HSLhsl(231, 52%, 40%)
HSVhsv(231, 68%, 61%)
CMYKcmyk(68.4%, 58.1%, 0%, 39.2%)
CIE-LABlab(31.35, 24.42, -51.12)
CIE-LCHlch(31.35, 56.65, 295.54°)
OKLaboklab(41.76% 0.0025 -0.1472)
OKLCHoklch(41.76% 0.147 271)
XYZxyz(9.0713, 6.7993, 31.8383)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31419B #9B8B31
analogous
#31769B #31419B #56319B
triadic
#31419B #9B3141 #419B31
tetradic
#31419B #9B3176 #9B8B31 #319B56
square
#31419B #9B3176 #9B8B31 #319B56
split-complementary
#31419B #9B5631 #769B31
monochromatic
#141A3E #222E6D #31419B #4558C4 #7382D3

Accessibility & contrast

On white

8.90
#31419B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#31419B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31419B
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31419B#FFFFFF#000000##FFFFFF
##31419B1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9E
Deuteranopia (green-blind)
#004599
Tritanopia (blue-blind)
#005767
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #31419b;
/* rgb */ color: rgb(49, 65, 155);
/* oklch */ color: oklch(41.8% 0.147 271.0);
Tailwind
colors: {
  custom: {
    50: '#7675b9',
    500: '#31419b',
    950: '#000000',
  },
}
SCSS
$custom: #31419b;
$custom-light: #7675b9;
$custom-dark: #000000;
JSON
{
  "hex": "#31419b",
  "rgb": {
    "r": 49,
    "g": 65,
    "b": 155
  },
  "hsl": {
    "h": 230.943,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.41757,
    "c": 0.14718,
    "h": 271
  },
  "luminance": 0.068
}

Semantic roles & 50–950 ramp

primary
#31419B
secondary
#BBAF6D
accent
#C64CDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #31419B

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

Preview Lab → · Contrast checker → · Palette generator →

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