#4034C8#4034C8

#4034C8 is a dark, highly saturated blue. Relative luminance 0.077; OKLCH L 44.7% C 0.217 H 276.6°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#4034C8
RGBrgb(64, 52, 200)
HSLhsl(245, 59%, 49%)
HSVhsv(245, 74%, 78%)
CMYKcmyk(68%, 74%, 0%, 21.6%)
CIE-LABlab(33.38, 49.71, -74.52)
CIE-LCHlch(33.38, 89.58, 303.71°)
OKLaboklab(44.72% 0.0251 -0.2153)
OKLCHoklch(44.72% 0.217 276.6)
XYZxyz(13.7643, 7.7149, 55.3961)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4034C8 #BCC834
analogous
#3472C8 #4034C8 #8A34C8
triadic
#4034C8 #C84034 #34C840
tetradic
#4034C8 #C83472 #BCC834 #34C88A
square
#4034C8 #C83472 #BCC834 #34C88A
split-complementary
#4034C8 #C88A34 #72C834
monochromatic
#211B67 #302797 #4034C8 #6C63D6 #9A93E3

Accessibility & contrast

On white

8.26
#4034C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#4034C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4034C8
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4034C8#FFFFFF#000000##FFFFFF
##4034C81.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CC
Deuteranopia (green-blind)
#0048C5
Tritanopia (blue-blind)
#005F7B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4034c8;
/* rgb */ color: rgb(64, 52, 200);
/* oklch */ color: oklch(44.7% 0.217 276.6);
Tailwind
colors: {
  custom: {
    50: '#876eda',
    500: '#4034c8',
    950: '#000000',
  },
}
SCSS
$custom: #4034c8;
$custom-light: #876eda;
$custom-dark: #000000;
JSON
{
  "hex": "#4034c8",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 200
  },
  "hsl": {
    "h": 244.865,
    "s": 58.73,
    "l": 49.412
  },
  "oklch": {
    "l": 0.44721,
    "c": 0.21681,
    "h": 276.6
  },
  "luminance": 0.07716
}

Semantic roles & 50–950 ramp

primary
#4034C8
secondary
#C9CE8A
accent
#E246D5
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #4034C8

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

Preview Lab → · Contrast checker → · Palette generator →

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