#31409A#31409A

#31409A is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.5% C 0.147 H 271.3°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#31409A
RGBrgb(49, 64, 154)
HSLhsl(231, 52%, 40%)
HSVhsv(231, 68%, 60%)
CMYKcmyk(68.2%, 58.4%, 0%, 39.6%)
CIE-LABlab(31.00, 24.72, -51.07)
CIE-LCHlch(31.00, 56.74, 295.83°)
OKLaboklab(41.48% 0.0034 -0.147)
OKLCHoklch(41.48% 0.147 271.3)
XYZxyz(8.9308, 6.6520, 31.3789)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31409A #9A8B31
analogous
#31749A #31409A #57319A
triadic
#31409A #9A3140 #409A31
tetradic
#31409A #9A3174 #9A8B31 #319A57
square
#31409A #9A3174 #9A8B31 #319A57
split-complementary
#31409A #9A5731 #749A31
monochromatic
#13193D #222D6C #31409A #4557C4 #7381D2

Accessibility & contrast

On white

9.01
#31409A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#31409A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31409A
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31409A#FFFFFF#000000##FFFFFF
##31409A1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9D
Deuteranopia (green-blind)
#004498
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #31409a;
/* rgb */ color: rgb(49, 64, 154);
/* oklch */ color: oklch(41.5% 0.147 271.3);
Tailwind
colors: {
  custom: {
    50: '#7674b8',
    500: '#31409a',
    950: '#000000',
  },
}
SCSS
$custom: #31409a;
$custom-light: #7674b8;
$custom-dark: #000000;
JSON
{
  "hex": "#31409a",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 154
  },
  "hsl": {
    "h": 231.429,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41476,
    "c": 0.14707,
    "h": 271.3
  },
  "luminance": 0.06653
}

Semantic roles & 50–950 ramp

primary
#31409A
secondary
#BAAF6C
accent
#C74DDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #31409A

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

Preview Lab → · Contrast checker → · Palette generator →

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