#4034D2#4034D2

#4034D2 is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.7% C 0.229 H 275.8°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#4034D2
RGBrgb(64, 52, 210)
HSLhsl(245, 64%, 51%)
HSVhsv(245, 75%, 82%)
CMYKcmyk(69.5%, 75.2%, 0%, 17.6%)
CIE-LABlab(34.39, 52.83, -78.67)
CIE-LCHlch(34.39, 94.76, 303.88°)
OKLaboklab(45.74% 0.023 -0.2274)
OKLCHoklch(45.74% 0.229 275.8)
XYZxyz(14.9714, 8.1977, 61.7536)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4034D2 #C6D234
analogous
#3477D2 #4034D2 #8F34D2
triadic
#4034D2 #D24034 #34D240
tetradic
#4034D2 #D23477 #C6D234 #34D28F
square
#4034D2 #D23477 #C6D234 #34D28F
split-complementary
#4034D2 #D28F34 #77D234
monochromatic
#201972 #2E24A4 #4034D2 #6F66DD #9E98E8

Accessibility & contrast

On white

7.96
#4034D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#4034D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4034D2
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4034D2#FFFFFF#000000##FFFFFF
##4034D21.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D7
Deuteranopia (green-blind)
#004ACF
Tritanopia (blue-blind)
#006281
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4034d2;
/* rgb */ color: rgb(64, 52, 210);
/* oklch */ color: oklch(45.7% 0.229 275.8);
Tailwind
colors: {
  custom: {
    50: '#896ee1',
    500: '#4034d2',
    950: '#000000',
  },
}
SCSS
$custom: #4034d2;
$custom-light: #896ee1;
$custom-dark: #000000;
JSON
{
  "hex": "#4034d2",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 210
  },
  "hsl": {
    "h": 244.557,
    "s": 63.71,
    "l": 51.373
  },
  "oklch": {
    "l": 0.45735,
    "c": 0.22859,
    "h": 275.8
  },
  "luminance": 0.08199
}

Semantic roles & 50–950 ramp

primary
#4034D2
secondary
#CED48E
accent
#E741DA
background
#F9F6FE
surface
#F2ECFC
border
#CCC7D5
text
#0D0715
muted
#7E7A84

Preview Lab

Preview with #4034D2

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

Preview Lab → · Contrast checker → · Palette generator →

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