#4034D1#4034D1

#4034D1 is a mid, highly saturated blue. Relative luminance 0.081; OKLCH L 45.6% C 0.227 H 275.9°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#4034D1
RGBrgb(64, 52, 209)
HSLhsl(245, 63%, 51%)
HSVhsv(245, 75%, 82%)
CMYKcmyk(69.4%, 75.1%, 0%, 18%)
CIE-LABlab(34.29, 52.52, -78.26)
CIE-LCHlch(34.29, 94.25, 303.86°)
OKLaboklab(45.63% 0.0232 -0.2262)
OKLCHoklch(45.63% 0.227 275.9)
XYZxyz(14.8472, 8.1480, 61.0995)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4034D1 #C5D134
analogous
#3476D1 #4034D1 #8E34D1
triadic
#4034D1 #D14034 #34D140
tetradic
#4034D1 #D13476 #C5D134 #34D18E
square
#4034D1 #D13476 #C5D134 #34D18E
split-complementary
#4034D1 #D18E34 #76D134
monochromatic
#201A71 #2F25A3 #4034D1 #6F66DC #9E98E8

Accessibility & contrast

On white

7.99
#4034D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#4034D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4034D1
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4034D1#FFFFFF#000000##FFFFFF
##4034D11.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D5
Deuteranopia (green-blind)
#004ACE
Tritanopia (blue-blind)
#006281
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4034d1;
/* rgb */ color: rgb(64, 52, 209);
/* oklch */ color: oklch(45.6% 0.227 275.9);
Tailwind
colors: {
  custom: {
    50: '#896ee0',
    500: '#4034d1',
    950: '#000000',
  },
}
SCSS
$custom: #4034d1;
$custom-light: #896ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#4034d1",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 209
  },
  "hsl": {
    "h": 244.586,
    "s": 63.052,
    "l": 51.176
  },
  "oklch": {
    "l": 0.45633,
    "c": 0.22742,
    "h": 275.9
  },
  "luminance": 0.08149
}

Semantic roles & 50–950 ramp

primary
#4034D1
secondary
#CED38E
accent
#E642DA
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #4034D1

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

Preview Lab → · Contrast checker → · Palette generator →

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