#4028AF#4028AF

#4028AF is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.199 H 281.0°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#4028AF
RGBrgb(64, 40, 175)
HSLhsl(251, 63%, 42%)
HSVhsv(251, 77%, 69%)
CMYKcmyk(63.4%, 77.1%, 0%, 31.4%)
CIE-LABlab(28.65, 48.29, -67.55)
CIE-LCHlch(28.65, 83.04, 305.56°)
OKLaboklab(40.63% 0.038 -0.1949)
OKLCHoklch(40.63% 0.199 281)
XYZxyz(10.6086, 5.7019, 41.0907)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4028AF #97AF28
analogous
#2853AF #4028AF #8428AF
triadic
#4028AF #AF4028 #28AF40
tetradic
#4028AF #AF2853 #97AF28 #28AF84
square
#4028AF #AF2853 #97AF28 #28AF84
split-complementary
#4028AF #AF8428 #53AF28
monochromatic
#1C114B #2E1D7D #4028AF #5B41D4 #8673DF

Accessibility & contrast

On white

9.81
#4028AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4028AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4028AF
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4028AF#FFFFFF#000000##FFFFFF
##4028AF1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B3
Deuteranopia (green-blind)
#003FAD
Tritanopia (blue-blind)
#004F6A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4028af;
/* rgb */ color: rgb(64, 40, 175);
/* oklch */ color: oklch(40.6% 0.199 281.0);
Tailwind
colors: {
  custom: {
    50: '#8366c8',
    500: '#4028af',
    950: '#000000',
  },
}
SCSS
$custom: #4028af;
$custom-light: #8366c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4028af",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 250.667,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40632,
    "c": 0.19858,
    "h": 281
  },
  "luminance": 0.05703
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4028AF

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

Preview Lab → · Contrast checker → · Palette generator →

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