#4034CB#4034CB

#4034CB is a mid, highly saturated blue. Relative luminance 0.079; OKLCH L 45.0% C 0.220 H 276.4°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#4034CB
RGBrgb(64, 52, 203)
HSLhsl(245, 59%, 50%)
HSVhsv(245, 74%, 80%)
CMYKcmyk(68.5%, 74.4%, 0%, 20.4%)
CIE-LABlab(33.68, 50.65, -75.78)
CIE-LCHlch(33.68, 91.15, 303.76°)
OKLaboklab(45.02% 0.0245 -0.219)
OKLCHoklch(45.02% 0.22 276.4)
XYZxyz(14.1183, 7.8565, 57.2608)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4034CB #BFCB34
analogous
#3474CB #4034CB #8B34CB
triadic
#4034CB #CB4034 #34CB40
tetradic
#4034CB #CB3474 #BFCB34 #34CB8B
square
#4034CB #CB3474 #BFCB34 #34CB8B
split-complementary
#4034CB #CB8B34 #74CB34
monochromatic
#211B6A #31289A #4034CB #6E65D7 #9C95E4

Accessibility & contrast

On white

8.17
#4034CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#4034CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4034CB
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4034CB#FFFFFF#000000##FFFFFF
##4034CB1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CF
Deuteranopia (green-blind)
#0049C8
Tritanopia (blue-blind)
#00607D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4034cb;
/* rgb */ color: rgb(64, 52, 203);
/* oklch */ color: oklch(45.0% 0.220 276.4);
Tailwind
colors: {
  custom: {
    50: '#886edc',
    500: '#4034cb',
    950: '#000000',
  },
}
SCSS
$custom: #4034cb;
$custom-light: #886edc;
$custom-dark: #000000;
JSON
{
  "hex": "#4034cb",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 203
  },
  "hsl": {
    "h": 244.768,
    "s": 59.216,
    "l": 50
  },
  "oklch": {
    "l": 0.45023,
    "c": 0.22036,
    "h": 276.4
  },
  "luminance": 0.07858
}

Semantic roles & 50–950 ramp

primary
#4034CB
secondary
#CACF8C
accent
#E245D6
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #4034CB

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

Preview Lab → · Contrast checker → · Palette generator →

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