#31419F#31419F

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

Color values

HEX#31419F
RGBrgb(49, 65, 159)
HSLhsl(231, 53%, 41%)
HSVhsv(231, 69%, 62%)
CMYKcmyk(69.2%, 59.1%, 0%, 37.6%)
CIE-LABlab(31.66, 25.90, -53.03)
CIE-LCHlch(31.66, 59.01, 296.03°)
OKLaboklab(42.09% 0.0026 -0.1528)
OKLCHoklch(42.09% 0.153 271)
XYZxyz(9.4128, 6.9359, 33.6369)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31419F #9F8F31
analogous
#31789F #31419F #58319F
triadic
#31419F #9F3141 #419F31
tetradic
#31419F #9F3178 #9F8F31 #319F58
square
#31419F #9F3178 #9F8F31 #319F58
split-complementary
#31419F #9F5831 #789F31
monochromatic
#141B41 #232E70 #31419F #4759C6 #7684D5

Accessibility & contrast

On white

8.80
#31419F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#31419F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31419F
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31419F#FFFFFF#000000##FFFFFF
##31419F1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A2
Deuteranopia (green-blind)
#00469D
Tritanopia (blue-blind)
#005869
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #31419f;
/* rgb */ color: rgb(49, 65, 159);
/* oklch */ color: oklch(42.1% 0.153 271.0);
Tailwind
colors: {
  custom: {
    50: '#7775bc',
    500: '#31419f',
    950: '#000000',
  },
}
SCSS
$custom: #31419f;
$custom-light: #7775bc;
$custom-dark: #000000;
JSON
{
  "hex": "#31419f",
  "rgb": {
    "r": 49,
    "g": 65,
    "b": 159
  },
  "hsl": {
    "h": 231.273,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42091,
    "c": 0.1528,
    "h": 271
  },
  "luminance": 0.06937
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31419F

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

Preview Lab → · Contrast checker → · Palette generator →

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