#4031B9#4031B9

#4031B9 is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 42.8% C 0.202 H 278.5°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#4031B9
RGBrgb(64, 49, 185)
HSLhsl(247, 58%, 46%)
HSVhsv(247, 74%, 73%)
CMYKcmyk(65.4%, 73.5%, 0%, 27.5%)
CIE-LABlab(31.32, 46.63, -69.10)
CIE-LCHlch(31.32, 83.36, 304.01°)
OKLaboklab(42.82% 0.03 -0.1995)
OKLCHoklch(42.82% 0.202 278.5)
XYZxyz(11.9668, 6.7884, 46.5692)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4031B9 #AAB931
analogous
#3166B9 #4031B9 #8431B9
triadic
#4031B9 #B94031 #31B940
tetradic
#4031B9 #B93166 #AAB931 #31B984
square
#4031B9 #B93166 #AAB931 #31B984
split-complementary
#4031B9 #B98431 #66B931
monochromatic
#1F1758 #2F2489 #4031B9 #6355D2 #8F86DF

Accessibility & contrast

On white

8.91
#4031B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4031B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4031B9
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4031B9#FFFFFF#000000##FFFFFF
##4031B91.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBD
Deuteranopia (green-blind)
#0044B7
Tritanopia (blue-blind)
#005772
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4031b9;
/* rgb */ color: rgb(64, 49, 185);
/* oklch */ color: oklch(42.8% 0.202 278.5);
Tailwind
colors: {
  custom: {
    50: '#856bcf',
    500: '#4031b9',
    950: '#000000',
  },
}
SCSS
$custom: #4031b9;
$custom-light: #856bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#4031b9",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 246.618,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.42816,
    "c": 0.20175,
    "h": 278.5
  },
  "luminance": 0.06789
}

Semantic roles & 50–950 ramp

primary
#4031B9
secondary
#C0C87D
accent
#E146D0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #4031B9

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

Preview Lab → · Contrast checker → · Palette generator →

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