#4028B2#4028B2

#4028B2 is a dark, highly saturated violet. Relative luminance 0.058; OKLCH L 40.9% C 0.202 H 280.6°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#4028B2
RGBrgb(64, 40, 178)
HSLhsl(250, 63%, 43%)
HSVhsv(250, 78%, 70%)
CMYKcmyk(64%, 77.5%, 0%, 30.2%)
CIE-LABlab(28.96, 49.19, -68.84)
CIE-LCHlch(28.96, 84.61, 305.55°)
OKLaboklab(40.94% 0.0372 -0.1987)
OKLCHoklch(40.94% 0.202 280.6)
XYZxyz(10.9065, 5.8211, 42.6597)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4028B2 #9AB228
analogous
#2855B2 #4028B2 #8528B2
triadic
#4028B2 #B24028 #28B240
tetradic
#4028B2 #B22855 #9AB228 #28B285
square
#4028B2 #B22855 #9AB228 #28B285
split-complementary
#4028B2 #B28528 #55B228
monochromatic
#1C124E #2E1D80 #4028B2 #5C43D5 #8775E0

Accessibility & contrast

On white

9.70
#4028B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4028B2
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4028B2#FFFFFF#000000##FFFFFF
##4028B21.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B6
Deuteranopia (green-blind)
#003FB0
Tritanopia (blue-blind)
#00516C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4028b2;
/* rgb */ color: rgb(64, 40, 178);
/* oklch */ color: oklch(40.9% 0.202 280.6);
Tailwind
colors: {
  custom: {
    50: '#8466ca',
    500: '#4028b2',
    950: '#000000',
  },
}
SCSS
$custom: #4028b2;
$custom-light: #8466ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4028b2",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 250.435,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4094,
    "c": 0.20211,
    "h": 280.6
  },
  "luminance": 0.05822
}

Semantic roles & 50–950 ramp

primary
#4028B2
secondary
#B8C76F
accent
#E641CA
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4028B2

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

Preview Lab → · Contrast checker → · Palette generator →

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