#4028B0#4028B0

#4028B0 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.200 H 280.9°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#4028B0
RGBrgb(64, 40, 176)
HSLhsl(251, 63%, 42%)
HSVhsv(251, 77%, 69%)
CMYKcmyk(63.6%, 77.3%, 0%, 31%)
CIE-LABlab(28.75, 48.59, -67.98)
CIE-LCHlch(28.75, 83.56, 305.56°)
OKLaboklab(40.73% 0.0377 -0.1962)
OKLCHoklch(40.73% 0.2 280.9)
XYZxyz(10.7071, 5.7413, 41.6098)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4028B0 #98B028
analogous
#2854B0 #4028B0 #8428B0
triadic
#4028B0 #B04028 #28B040
tetradic
#4028B0 #B02854 #98B028 #28B084
square
#4028B0 #B02854 #98B028 #28B084
split-complementary
#4028B0 #B08428 #54B028
monochromatic
#1C114C #2E1D7E #4028B0 #5B41D4 #8673DF

Accessibility & contrast

On white

9.77
#4028B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4028B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4028B0
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4028B0#FFFFFF#000000##FFFFFF
##4028B01.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B4
Deuteranopia (green-blind)
#003FAE
Tritanopia (blue-blind)
#00506B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4028b0;
/* rgb */ color: rgb(64, 40, 176);
/* oklch */ color: oklch(40.7% 0.200 280.9);
Tailwind
colors: {
  custom: {
    50: '#8466c9',
    500: '#4028b0',
    950: '#000000',
  },
}
SCSS
$custom: #4028b0;
$custom-light: #8466c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4028b0",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 250.588,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40734,
    "c": 0.19976,
    "h": 280.9
  },
  "luminance": 0.05742
}

Semantic roles & 50–950 ramp

primary
#4028B0
secondary
#B7C66D
accent
#E642C9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4028B0

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

Preview Lab → · Contrast checker → · Palette generator →

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