#4034D3#4034D3

#4034D3 is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.8% C 0.230 H 275.7°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#4034D3
RGBrgb(64, 52, 211)
HSLhsl(245, 64%, 52%)
HSVhsv(245, 75%, 83%)
CMYKcmyk(69.7%, 75.4%, 0%, 17.3%)
CIE-LABlab(34.49, 53.13, -79.08)
CIE-LCHlch(34.49, 95.27, 303.90°)
OKLaboklab(45.84% 0.0228 -0.2286)
OKLCHoklch(45.84% 0.23 275.7)
XYZxyz(15.0964, 8.2477, 62.4118)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4034D3 #C7D334
analogous
#3478D3 #4034D3 #8F34D3
triadic
#4034D3 #D34034 #34D340
tetradic
#4034D3 #D33478 #C7D334 #34D38F
square
#4034D3 #D33478 #C7D334 #34D38F
split-complementary
#4034D3 #D38F34 #78D334
monochromatic
#201974 #2E24A6 #4034D3 #6F66DE #9F99E9

Accessibility & contrast

On white

7.93
#4034D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#4034D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4034D3
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4034D3#FFFFFF#000000##FFFFFF
##4034D31.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D8
Deuteranopia (green-blind)
#004AD0
Tritanopia (blue-blind)
#006382
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4034d3;
/* rgb */ color: rgb(64, 52, 211);
/* oklch */ color: oklch(45.8% 0.230 275.7);
Tailwind
colors: {
  custom: {
    50: '#8a6ee2',
    500: '#4034d3',
    950: '#000000',
  },
}
SCSS
$custom: #4034d3;
$custom-light: #8a6ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#4034d3",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 211
  },
  "hsl": {
    "h": 244.528,
    "s": 64.372,
    "l": 51.569
  },
  "oklch": {
    "l": 0.45837,
    "c": 0.22975,
    "h": 275.7
  },
  "luminance": 0.08249
}

Semantic roles & 50–950 ramp

primary
#4034D3
secondary
#CFD48E
accent
#E740DB
background
#F9F6FE
surface
#F2ECFC
border
#CCC7D5
text
#0E0716
muted
#7E7A84

Preview Lab

Preview with #4034D3

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

Preview Lab → · Contrast checker → · Palette generator →

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