#4028B6#4028B6

#4028B6 is a dark, highly saturated violet. Relative luminance 0.060; OKLCH L 41.4% C 0.207 H 280.0°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#4028B6
RGBrgb(64, 40, 182)
HSLhsl(250, 64%, 44%)
HSVhsv(250, 78%, 71%)
CMYKcmyk(64.8%, 78%, 0%, 28.6%)
CIE-LABlab(29.37, 50.39, -70.53)
CIE-LCHlch(29.37, 86.68, 305.54°)
OKLaboklab(41.36% 0.0361 -0.2036)
OKLCHoklch(41.36% 0.207 280)
XYZxyz(11.3140, 5.9841, 44.8057)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4028B6 #9EB628
analogous
#2857B6 #4028B6 #8728B6
triadic
#4028B6 #B64028 #28B640
tetradic
#4028B6 #B62857 #9EB628 #28B687
square
#4028B6 #B62857 #9EB628 #28B687
split-complementary
#4028B6 #B68728 #57B628
monochromatic
#1D1252 #2E1D84 #4028B6 #5E45D6 #8977E1

Accessibility & contrast

On white

9.56
#4028B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4028B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4028B6
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4028B6#FFFFFF#000000##FFFFFF
##4028B61.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABA
Deuteranopia (green-blind)
#0040B3
Tritanopia (blue-blind)
#00526E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4028b6;
/* rgb */ color: rgb(64, 40, 182);
/* oklch */ color: oklch(41.4% 0.207 280.0);
Tailwind
colors: {
  custom: {
    50: '#8566cd',
    500: '#4028b6',
    950: '#000000',
  },
}
SCSS
$custom: #4028b6;
$custom-light: #8566cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4028b6",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 182
  },
  "hsl": {
    "h": 250.141,
    "s": 63.964,
    "l": 43.529
  },
  "oklch": {
    "l": 0.41355,
    "c": 0.20678,
    "h": 280
  },
  "luminance": 0.05985
}

Semantic roles & 50–950 ramp

primary
#4028B6
secondary
#BAC971
accent
#E741CB
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #4028B6

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

Preview Lab → · Contrast checker → · Palette generator →

#4028B6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva