#4034CA#4034CA

#4034CA is a dark, highly saturated blue. Relative luminance 0.078; OKLCH L 44.9% C 0.219 H 276.5°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#4034CA
RGBrgb(64, 52, 202)
HSLhsl(245, 59%, 50%)
HSVhsv(245, 74%, 79%)
CMYKcmyk(68.3%, 74.3%, 0%, 20.8%)
CIE-LABlab(33.58, 50.34, -75.36)
CIE-LCHlch(33.58, 90.63, 303.74°)
OKLaboklab(44.92% 0.0247 -0.2178)
OKLCHoklch(44.92% 0.219 276.5)
XYZxyz(13.9995, 7.8090, 56.6352)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4034CA #BECA34
analogous
#3473CA #4034CA #8B34CA
triadic
#4034CA #CA4034 #34CA40
tetradic
#4034CA #CA3473 #BECA34 #34CA8B
square
#4034CA #CA3473 #BECA34 #34CA8B
split-complementary
#4034CA #CA8B34 #73CA34
monochromatic
#211B69 #312799 #4034CA #6D64D7 #9B95E4

Accessibility & contrast

On white

8.20
#4034CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#4034CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4034CA
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4034CA#FFFFFF#000000##FFFFFF
##4034CA1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CE
Deuteranopia (green-blind)
#0048C7
Tritanopia (blue-blind)
#005F7D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4034ca;
/* rgb */ color: rgb(64, 52, 202);
/* oklch */ color: oklch(44.9% 0.219 276.5);
Tailwind
colors: {
  custom: {
    50: '#886edb',
    500: '#4034ca',
    950: '#000000',
  },
}
SCSS
$custom: #4034ca;
$custom-light: #886edb;
$custom-dark: #000000;
JSON
{
  "hex": "#4034ca",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 202
  },
  "hsl": {
    "h": 244.8,
    "s": 59.055,
    "l": 49.804
  },
  "oklch": {
    "l": 0.44922,
    "c": 0.21918,
    "h": 276.5
  },
  "luminance": 0.0781
}

Semantic roles & 50–950 ramp

primary
#4034CA
secondary
#C9CF8B
accent
#E246D6
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #4034CA

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

Preview Lab → · Contrast checker → · Palette generator →

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