#4031A9#4031A9

#4031A9 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.3% C 0.182 H 280.5°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#4031A9
RGBrgb(64, 49, 169)
HSLhsl(248, 55%, 43%)
HSVhsv(248, 71%, 66%)
CMYKcmyk(62.1%, 71%, 0%, 33.7%)
CIE-LABlab(29.79, 41.57, -62.07)
CIE-LCHlch(29.79, 74.71, 303.81°)
OKLaboklab(41.26% 0.0331 -0.179)
OKLCHoklch(41.26% 0.182 280.5)
XYZxyz(10.3718, 6.1504, 38.1690)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4031A9 #9AA931
analogous
#315EA9 #4031A9 #7C31A9
triadic
#4031A9 #A94031 #31A940
tetradic
#4031A9 #A9315E #9AA931 #31A97C
square
#4031A9 #A9315E #9AA931 #31A97C
split-complementary
#4031A9 #A97C31 #5EA931
monochromatic
#1C154A #2E237A #4031A9 #5C4CCB #877CD9

Accessibility & contrast

On white

9.42
#4031A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4031A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4031A9
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4031A9#FFFFFF#000000##FFFFFF
##4031A91.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAD
Deuteranopia (green-blind)
#0042A7
Tritanopia (blue-blind)
#005169
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4031a9;
/* rgb */ color: rgb(64, 49, 169);
/* oklch */ color: oklch(41.3% 0.182 280.5);
Tailwind
colors: {
  custom: {
    50: '#816bc4',
    500: '#4031a9',
    950: '#000000',
  },
}
SCSS
$custom: #4031a9;
$custom-light: #816bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#4031a9",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 169
  },
  "hsl": {
    "h": 247.5,
    "s": 55.046,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41262,
    "c": 0.18201,
    "h": 280.5
  },
  "luminance": 0.06151
}

Semantic roles & 50–950 ramp

primary
#4031A9
secondary
#B8C174
accent
#DE49CC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4031A9

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

Preview Lab → · Contrast checker → · Palette generator →

#4031A9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva