#4034C7#4034C7

#4034C7 is a dark, highly saturated blue. Relative luminance 0.077; OKLCH L 44.6% C 0.216 H 276.7°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#4034C7
RGBrgb(64, 52, 199)
HSLhsl(245, 59%, 49%)
HSVhsv(245, 74%, 78%)
CMYKcmyk(67.8%, 73.9%, 0%, 22%)
CIE-LABlab(33.28, 49.40, -74.10)
CIE-LCHlch(33.28, 89.06, 303.69°)
OKLaboklab(44.62% 0.0253 -0.2141)
OKLCHoklch(44.62% 0.216 276.7)
XYZxyz(13.6478, 7.6683, 54.7827)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4034C7 #BBC734
analogous
#3472C7 #4034C7 #8A34C7
triadic
#4034C7 #C74034 #34C740
tetradic
#4034C7 #C73472 #BBC734 #34C78A
square
#4034C7 #C73472 #BBC734 #34C78A
split-complementary
#4034C7 #C78A34 #72C734
monochromatic
#211B66 #302796 #4034C7 #6C62D6 #9993E3

Accessibility & contrast

On white

8.29
#4034C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#4034C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4034C7
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4034C7#FFFFFF#000000##FFFFFF
##4034C71.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CB
Deuteranopia (green-blind)
#0048C4
Tritanopia (blue-blind)
#005E7B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4034c7;
/* rgb */ color: rgb(64, 52, 199);
/* oklch */ color: oklch(44.6% 0.216 276.7);
Tailwind
colors: {
  custom: {
    50: '#876ed9',
    500: '#4034c7',
    950: '#000000',
  },
}
SCSS
$custom: #4034c7;
$custom-light: #876ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#4034c7",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 199
  },
  "hsl": {
    "h": 244.898,
    "s": 58.566,
    "l": 49.216
  },
  "oklch": {
    "l": 0.44621,
    "c": 0.21561,
    "h": 276.7
  },
  "luminance": 0.07669
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4034C7

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

Preview Lab → · Contrast checker → · Palette generator →

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