#4031D1#4031D1

#4031D1 is a mid, highly saturated blue. Relative luminance 0.079; OKLCH L 45.3% C 0.230 H 276.1°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#4031D1
RGBrgb(64, 49, 209)
HSLhsl(246, 63%, 51%)
HSVhsv(246, 77%, 82%)
CMYKcmyk(69.4%, 76.6%, 0%, 18%)
CIE-LABlab(33.75, 54.05, -79.15)
CIE-LCHlch(33.75, 95.85, 304.33°)
OKLaboklab(45.25% 0.0246 -0.2288)
OKLCHoklch(45.25% 0.23 276.1)
XYZxyz(14.7175, 7.8887, 61.0563)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4031D1 #C2D131
analogous
#3172D1 #4031D1 #9031D1
triadic
#4031D1 #D14031 #31D140
tetradic
#4031D1 #D13172 #C2D131 #31D190
square
#4031D1 #D13172 #C2D131 #31D190
split-complementary
#4031D1 #D19031 #72D131
monochromatic
#21196F #3024A1 #4031D1 #6E63DC #9D95E7

Accessibility & contrast

On white

8.15
#4031D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#4031D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4031D1
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4031D1#FFFFFF#000000##FFFFFF
##4031D11.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056D6
Deuteranopia (green-blind)
#0048CE
Tritanopia (blue-blind)
#006180
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4031d1;
/* rgb */ color: rgb(64, 49, 209);
/* oklch */ color: oklch(45.3% 0.230 276.1);
Tailwind
colors: {
  custom: {
    50: '#8a6de1',
    500: '#4031d1',
    950: '#000000',
  },
}
SCSS
$custom: #4031d1;
$custom-light: #8a6de1;
$custom-dark: #000000;
JSON
{
  "hex": "#4031d1",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 209
  },
  "hsl": {
    "h": 245.625,
    "s": 63.492,
    "l": 50.588
  },
  "oklch": {
    "l": 0.45253,
    "c": 0.23012,
    "h": 276.1
  },
  "luminance": 0.0789
}

Semantic roles & 50–950 ramp

primary
#4031D1
secondary
#CCD28B
accent
#E741D7
background
#F9F6FE
surface
#F2ECFC
border
#CCC7D5
text
#0D0715
muted
#7E7A84

Preview Lab

Preview with #4031D1

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

Preview Lab → · Contrast checker → · Palette generator →

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