#31419A#31419A

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

Color values

HEX#31419A
RGBrgb(49, 65, 154)
HSLhsl(231, 52%, 40%)
HSVhsv(231, 68%, 60%)
CMYKcmyk(68.2%, 57.8%, 0%, 39.6%)
CIE-LABlab(31.27, 24.05, -50.64)
CIE-LCHlch(31.27, 56.06, 295.41°)
OKLaboklab(41.68% 0.0025 -0.1457)
OKLCHoklch(41.68% 0.146 271)
XYZxyz(8.9877, 6.7658, 31.3979)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31419A #9A8A31
analogous
#31769A #31419A #55319A
triadic
#31419A #9A3141 #419A31
tetradic
#31419A #9A3176 #9A8A31 #319A55
square
#31419A #9A3176 #9A8A31 #319A55
split-complementary
#31419A #9A5531 #769A31
monochromatic
#131A3D #222D6C #31419A #4558C4 #7382D2

Accessibility & contrast

On white

8.92
#31419A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#31419A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31419A
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31419A#FFFFFF#000000##FFFFFF
##31419A1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31419a;
/* rgb */ color: rgb(49, 65, 154);
/* oklch */ color: oklch(41.7% 0.146 271.0);
Tailwind
colors: {
  custom: {
    50: '#7675b8',
    500: '#31419a',
    950: '#000000',
  },
}
SCSS
$custom: #31419a;
$custom-light: #7675b8;
$custom-dark: #000000;
JSON
{
  "hex": "#31419a",
  "rgb": {
    "r": 49,
    "g": 65,
    "b": 154
  },
  "hsl": {
    "h": 230.857,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41675,
    "c": 0.14577,
    "h": 271
  },
  "luminance": 0.06767
}

Semantic roles & 50–950 ramp

primary
#31419A
secondary
#BAAE6C
accent
#C54DDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #31419A

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

Preview Lab → · Contrast checker → · Palette generator →

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