#31409B#31409B

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

Color values

HEX#31409B
RGBrgb(49, 64, 155)
HSLhsl(232, 52%, 40%)
HSVhsv(232, 68%, 61%)
CMYKcmyk(68.4%, 58.7%, 0%, 39.2%)
CIE-LABlab(31.08, 25.09, -51.55)
CIE-LCHlch(31.08, 57.33, 295.95°)
OKLaboklab(41.56% 0.0034 -0.1484)
OKLCHoklch(41.56% 0.148 271.3)
XYZxyz(9.0144, 6.6855, 31.8194)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31409B #9B8C31
analogous
#31759B #31409B #57319B
triadic
#31409B #9B3140 #409B31
tetradic
#31409B #9B3175 #9B8C31 #319B57
square
#31409B #9B3175 #9B8C31 #319B57
split-complementary
#31409B #9B5731 #759B31
monochromatic
#141A3E #222D6D #31409B #4557C4 #7381D3

Accessibility & contrast

On white

8.99
#31409B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#31409B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31409B
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31409B#FFFFFF#000000##FFFFFF
##31409B1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#005667
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #31409b;
/* rgb */ color: rgb(49, 64, 155);
/* oklch */ color: oklch(41.6% 0.148 271.3);
Tailwind
colors: {
  custom: {
    50: '#7674b9',
    500: '#31409b',
    950: '#000000',
  },
}
SCSS
$custom: #31409b;
$custom-light: #7674b9;
$custom-dark: #000000;
JSON
{
  "hex": "#31409b",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 155
  },
  "hsl": {
    "h": 231.509,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.41559,
    "c": 0.14848,
    "h": 271.3
  },
  "luminance": 0.06686
}

Semantic roles & 50–950 ramp

primary
#31409B
secondary
#BBB06D
accent
#C74CDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #31409B

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

Preview Lab → · Contrast checker → · Palette generator →

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