#31409C#31409C

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

Color values

HEX#31409C
RGBrgb(49, 64, 156)
HSLhsl(232, 52%, 40%)
HSVhsv(232, 69%, 61%)
CMYKcmyk(68.6%, 59%, 0%, 38.8%)
CIE-LABlab(31.16, 25.46, -52.03)
CIE-LCHlch(31.16, 57.92, 296.07°)
OKLaboklab(41.64% 0.0034 -0.1498)
OKLCHoklch(41.64% 0.15 271.3)
XYZxyz(9.0987, 6.7192, 32.2635)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31409C #9C8D31
analogous
#31759C #31409C #58319C
triadic
#31409C #9C3140 #409C31
tetradic
#31409C #9C3175 #9C8D31 #319C58
square
#31409C #9C3175 #9C8D31 #319C58
split-complementary
#31409C #9C5831 #759C31
monochromatic
#141A3F #222D6D #31409C #4557C5 #7481D3

Accessibility & contrast

On white

8.96
#31409C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31409C
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31409C#FFFFFF#000000##FFFFFF
##31409C1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9F
Deuteranopia (green-blind)
#00459A
Tritanopia (blue-blind)
#005767
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #31409c;
/* rgb */ color: rgb(49, 64, 156);
/* oklch */ color: oklch(41.6% 0.150 271.3);
Tailwind
colors: {
  custom: {
    50: '#7774ba',
    500: '#31409c',
    950: '#000000',
  },
}
SCSS
$custom: #31409c;
$custom-light: #7774ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31409c",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 156
  },
  "hsl": {
    "h": 231.589,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41643,
    "c": 0.14989,
    "h": 271.3
  },
  "luminance": 0.0672
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31409C

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

Preview Lab → · Contrast checker → · Palette generator →

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