#4028B3#4028B3

#4028B3 is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.0% C 0.203 H 280.5°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#4028B3
RGBrgb(64, 40, 179)
HSLhsl(250, 63%, 43%)
HSVhsv(250, 78%, 70%)
CMYKcmyk(64.2%, 77.7%, 0%, 29.8%)
CIE-LABlab(29.06, 49.49, -69.26)
CIE-LCHlch(29.06, 85.13, 305.55°)
OKLaboklab(41.04% 0.0369 -0.1999)
OKLCHoklch(41.04% 0.203 280.5)
XYZxyz(11.0072, 5.8614, 43.1904)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4028B3 #9BB328
analogous
#2855B3 #4028B3 #8528B3
triadic
#4028B3 #B34028 #28B340
tetradic
#4028B3 #B32855 #9BB328 #28B385
square
#4028B3 #B32855 #9BB328 #28B385
split-complementary
#4028B3 #B38528 #55B328
monochromatic
#1C124F #2E1D81 #4028B3 #5C43D5 #8875E0

Accessibility & contrast

On white

9.67
#4028B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4028B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4028B3
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4028B3#FFFFFF#000000##FFFFFF
##4028B31.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B7
Deuteranopia (green-blind)
#003FB1
Tritanopia (blue-blind)
#00516D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4028b3;
/* rgb */ color: rgb(64, 40, 179);
/* oklch */ color: oklch(41.0% 0.203 280.5);
Tailwind
colors: {
  custom: {
    50: '#8466cb',
    500: '#4028b3',
    950: '#000000',
  },
}
SCSS
$custom: #4028b3;
$custom-light: #8466cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4028b3",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 250.36,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41043,
    "c": 0.20329,
    "h": 280.5
  },
  "luminance": 0.05862
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4028B3

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

Preview Lab → · Contrast checker → · Palette generator →

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