#31409F#31409F

#31409F is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.154 H 271.3°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#31409F
RGBrgb(49, 64, 159)
HSLhsl(232, 53%, 41%)
HSVhsv(232, 69%, 62%)
CMYKcmyk(69.2%, 59.7%, 0%, 37.6%)
CIE-LABlab(31.40, 26.56, -53.45)
CIE-LCHlch(31.40, 59.69, 296.42°)
OKLaboklab(41.9% 0.0034 -0.154)
OKLCHoklch(41.9% 0.154 271.3)
XYZxyz(9.3559, 6.8221, 33.6179)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31409F #9F9031
analogous
#31779F #31409F #59319F
triadic
#31409F #9F3140 #409F31
tetradic
#31409F #9F3177 #9F9031 #319F59
square
#31409F #9F3177 #9F9031 #319F59
split-complementary
#31409F #9F5931 #779F31
monochromatic
#141A41 #232D70 #31409F #4758C6 #7683D5

Accessibility & contrast

On white

8.88
#31409F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#31409F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31409F
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31409F#FFFFFF#000000##FFFFFF
##31409F1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#005869
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #31409f;
/* rgb */ color: rgb(49, 64, 159);
/* oklch */ color: oklch(41.9% 0.154 271.3);
Tailwind
colors: {
  custom: {
    50: '#7774bc',
    500: '#31409f',
    950: '#000000',
  },
}
SCSS
$custom: #31409f;
$custom-light: #7774bc;
$custom-dark: #000000;
JSON
{
  "hex": "#31409f",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 159
  },
  "hsl": {
    "h": 231.818,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41896,
    "c": 0.15408,
    "h": 271.3
  },
  "luminance": 0.06823
}

Semantic roles & 50–950 ramp

primary
#31409F
secondary
#BDB26F
accent
#C94CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #31409F

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

Preview Lab → · Contrast checker → · Palette generator →

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