#4028B1#4028B1

#4028B1 is a dark, highly saturated violet. Relative luminance 0.058; OKLCH L 40.8% C 0.201 H 280.7°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#4028B1
RGBrgb(64, 40, 177)
HSLhsl(251, 63%, 43%)
HSVhsv(251, 77%, 69%)
CMYKcmyk(63.8%, 77.4%, 0%, 30.6%)
CIE-LABlab(28.85, 48.89, -68.41)
CIE-LCHlch(28.85, 84.08, 305.55°)
OKLaboklab(40.84% 0.0374 -0.1974)
OKLCHoklch(40.84% 0.201 280.7)
XYZxyz(10.8064, 5.7811, 42.1328)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4028B1 #99B128
analogous
#2854B1 #4028B1 #8528B1
triadic
#4028B1 #B14028 #28B140
tetradic
#4028B1 #B12854 #99B128 #28B185
square
#4028B1 #B12854 #99B128 #28B185
split-complementary
#4028B1 #B18528 #54B128
monochromatic
#1C114D #2E1D7F #4028B1 #5C42D4 #8774E0

Accessibility & contrast

On white

9.74
#4028B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4028B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4028B1
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4028B1#FFFFFF#000000##FFFFFF
##4028B11.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B5
Deuteranopia (green-blind)
#003FAF
Tritanopia (blue-blind)
#00506C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4028b1;
/* rgb */ color: rgb(64, 40, 177);
/* oklch */ color: oklch(40.8% 0.201 280.7);
Tailwind
colors: {
  custom: {
    50: '#8466ca',
    500: '#4028b1',
    950: '#000000',
  },
}
SCSS
$custom: #4028b1;
$custom-light: #8466ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4028b1",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 250.511,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40837,
    "c": 0.20094,
    "h": 280.7
  },
  "luminance": 0.05782
}

Semantic roles & 50–950 ramp

primary
#4028B1
secondary
#B7C76E
accent
#E642C9
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4028B1

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

Preview Lab → · Contrast checker → · Palette generator →

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