#4034CD#4034CD

#4034CD is a mid, highly saturated blue. Relative luminance 0.080; OKLCH L 45.2% C 0.223 H 276.2°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#4034CD
RGBrgb(64, 52, 205)
HSLhsl(245, 60%, 50%)
HSVhsv(245, 75%, 80%)
CMYKcmyk(68.8%, 74.6%, 0%, 19.6%)
CIE-LABlab(33.88, 51.28, -76.61)
CIE-LCHlch(33.88, 92.18, 303.80°)
OKLaboklab(45.23% 0.024 -0.2214)
OKLCHoklch(45.23% 0.223 276.2)
XYZxyz(14.3582, 7.9524, 58.5241)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4034CD #C1CD34
analogous
#3474CD #4034CD #8C34CD
triadic
#4034CD #CD4034 #34CD40
tetradic
#4034CD #CD3474 #C1CD34 #34CD8C
square
#4034CD #CD3474 #C1CD34 #34CD8C
split-complementary
#4034CD #CD8C34 #74CD34
monochromatic
#211B6C #30279D #4034CD #6E65D9 #9C96E5

Accessibility & contrast

On white

8.11
#4034CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#4034CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4034CD
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4034CD#FFFFFF#000000##FFFFFF
##4034CD1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056D1
Deuteranopia (green-blind)
#0049CA
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4034cd;
/* rgb */ color: rgb(64, 52, 205);
/* oklch */ color: oklch(45.2% 0.223 276.2);
Tailwind
colors: {
  custom: {
    50: '#886ede',
    500: '#4034cd',
    950: '#000000',
  },
}
SCSS
$custom: #4034cd;
$custom-light: #886ede;
$custom-dark: #000000;
JSON
{
  "hex": "#4034cd",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 205
  },
  "hsl": {
    "h": 244.706,
    "s": 60.474,
    "l": 50.392
  },
  "oklch": {
    "l": 0.45226,
    "c": 0.22272,
    "h": 276.2
  },
  "luminance": 0.07954
}

Semantic roles & 50–950 ramp

primary
#4034CD
secondary
#CBD18C
accent
#E444D7
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #4034CD

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

Preview Lab → · Contrast checker → · Palette generator →

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