#4031B5#4031B5

#4031B5 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.4% C 0.197 H 279.0°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#4031B5
RGBrgb(64, 49, 181)
HSLhsl(247, 57%, 45%)
HSVhsv(247, 73%, 71%)
CMYKcmyk(64.6%, 72.9%, 0%, 29%)
CIE-LABlab(30.93, 45.38, -67.37)
CIE-LCHlch(30.93, 81.23, 303.96°)
OKLaboklab(42.42% 0.0308 -0.1945)
OKLCHoklch(42.42% 0.197 279)
XYZxyz(11.5505, 6.6219, 44.3766)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4031B5 #A6B531
analogous
#3164B5 #4031B5 #8231B5
triadic
#4031B5 #B54031 #31B540
tetradic
#4031B5 #B53164 #A6B531 #31B582
square
#4031B5 #B53164 #A6B531 #31B582
split-complementary
#4031B5 #B58231 #64B531
monochromatic
#1E1755 #2F2485 #4031B5 #6153D0 #8D83DD

Accessibility & contrast

On white

9.03
#4031B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4031B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4031B5
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4031B5#FFFFFF#000000##FFFFFF
##4031B51.009.032.329.03
#FFFFFF9.031.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB9
Deuteranopia (green-blind)
#0043B3
Tritanopia (blue-blind)
#005670
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4031b5;
/* rgb */ color: rgb(64, 49, 181);
/* oklch */ color: oklch(42.4% 0.197 279.0);
Tailwind
colors: {
  custom: {
    50: '#846bcc',
    500: '#4031b5',
    950: '#000000',
  },
}
SCSS
$custom: #4031b5;
$custom-light: #846bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4031b5",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 246.818,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42422,
    "c": 0.19689,
    "h": 279
  },
  "luminance": 0.06623
}

Semantic roles & 50–950 ramp

primary
#4031B5
secondary
#BEC77B
accent
#E147CF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #4031B5

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

Preview Lab → · Contrast checker → · Palette generator →

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