#4034CC#4034CC

#4034CC is a mid, highly saturated blue. Relative luminance 0.079; OKLCH L 45.1% C 0.222 H 276.3°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#4034CC
RGBrgb(64, 52, 204)
HSLhsl(245, 60%, 50%)
HSVhsv(245, 75%, 80%)
CMYKcmyk(68.6%, 74.5%, 0%, 20%)
CIE-LABlab(33.78, 50.96, -76.19)
CIE-LCHlch(33.78, 91.67, 303.78°)
OKLaboklab(45.12% 0.0243 -0.2202)
OKLCHoklch(45.12% 0.222 276.3)
XYZxyz(14.2379, 7.9043, 57.8904)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4034CC #C0CC34
analogous
#3474CC #4034CC #8C34CC
triadic
#4034CC #CC4034 #34CC40
tetradic
#4034CC #CC3474 #C0CC34 #34CC8C
square
#4034CC #CC3474 #C0CC34 #34CC8C
split-complementary
#4034CC #CC8C34 #74CC34
monochromatic
#211B6B #30279C #4034CC #6E65D8 #9C96E5

Accessibility & contrast

On white

8.14
#4034CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#4034CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4034CC
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4034CC#FFFFFF#000000##FFFFFF
##4034CC1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056D0
Deuteranopia (green-blind)
#0049C9
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4034cc;
/* rgb */ color: rgb(64, 52, 204);
/* oklch */ color: oklch(45.1% 0.222 276.3);
Tailwind
colors: {
  custom: {
    50: '#886edd',
    500: '#4034cc',
    950: '#000000',
  },
}
SCSS
$custom: #4034cc;
$custom-light: #886edd;
$custom-dark: #000000;
JSON
{
  "hex": "#4034cc",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 204
  },
  "hsl": {
    "h": 244.737,
    "s": 59.843,
    "l": 50.196
  },
  "oklch": {
    "l": 0.45124,
    "c": 0.22154,
    "h": 276.3
  },
  "luminance": 0.07906
}

Semantic roles & 50–950 ramp

primary
#4034CC
secondary
#CBD08C
accent
#E345D7
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #4034CC

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

Preview Lab → · Contrast checker → · Palette generator →

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