#4028B7#4028B7

#4028B7 is a dark, highly saturated violet. Relative luminance 0.060; OKLCH L 41.5% C 0.208 H 279.9°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#4028B7
RGBrgb(64, 40, 183)
HSLhsl(250, 64%, 44%)
HSVhsv(250, 78%, 72%)
CMYKcmyk(65%, 78.1%, 0%, 28.2%)
CIE-LABlab(29.48, 50.69, -70.95)
CIE-LCHlch(29.48, 87.20, 305.54°)
OKLaboklab(41.46% 0.0358 -0.2048)
OKLCHoklch(41.46% 0.208 279.9)
XYZxyz(11.4177, 6.0256, 45.3519)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4028B7 #9FB728
analogous
#2857B7 #4028B7 #8728B7
triadic
#4028B7 #B74028 #28B740
tetradic
#4028B7 #B72857 #9FB728 #28B787
square
#4028B7 #B72857 #9FB728 #28B787
split-complementary
#4028B7 #B78728 #57B728
monochromatic
#1D1253 #2E1D85 #4028B7 #5E46D6 #8A78E1

Accessibility & contrast

On white

9.52
#4028B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4028B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4028B7
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4028B7#FFFFFF#000000##FFFFFF
##4028B71.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBB
Deuteranopia (green-blind)
#0040B4
Tritanopia (blue-blind)
#00536F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4028b7;
/* rgb */ color: rgb(64, 40, 183);
/* oklch */ color: oklch(41.5% 0.208 279.9);
Tailwind
colors: {
  custom: {
    50: '#8566ce',
    500: '#4028b7',
    950: '#000000',
  },
}
SCSS
$custom: #4028b7;
$custom-light: #8566ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4028b7",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 250.07,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.41459,
    "c": 0.20794,
    "h": 279.9
  },
  "luminance": 0.06026
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4028B7

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

Preview Lab → · Contrast checker → · Palette generator →

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