#4027BC#4027BC

#4027BC is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 41.9% C 0.215 H 279.4°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#4027BC
RGBrgb(64, 39, 188)
HSLhsl(250, 66%, 45%)
HSVhsv(250, 79%, 74%)
CMYKcmyk(66%, 79.3%, 0%, 26.3%)
CIE-LABlab(29.84, 52.65, -73.32)
CIE-LCHlch(29.84, 90.26, 305.68°)
OKLaboklab(41.87% 0.0349 -0.2117)
OKLCHoklch(41.87% 0.215 279.4)
XYZxyz(11.9141, 6.1709, 48.1305)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4027BC #A3BC27
analogous
#2759BC #4027BC #8B27BC
triadic
#4027BC #BC4027 #27BC40
tetradic
#4027BC #BC2759 #A3BC27 #27BC8B
square
#4027BC #BC2759 #A3BC27 #27BC8B
split-complementary
#4027BC #BC8B27 #59BC27
monochromatic
#1D1257 #2F1C89 #4027BC #6047D9 #8C7AE3

Accessibility & contrast

On white

9.40
#4027BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4027BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4027BC
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4027BC#FFFFFF#000000##FFFFFF
##4027BC1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC0
Deuteranopia (green-blind)
#0040B9
Tritanopia (blue-blind)
#005472
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4027bc;
/* rgb */ color: rgb(64, 39, 188);
/* oklch */ color: oklch(41.9% 0.215 279.4);
Tailwind
colors: {
  custom: {
    50: '#8666d2',
    500: '#4027bc',
    950: '#000000',
  },
}
SCSS
$custom: #4027bc;
$custom-light: #8666d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4027bc",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 188
  },
  "hsl": {
    "h": 250.067,
    "s": 65.639,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41868,
    "c": 0.21457,
    "h": 279.4
  },
  "luminance": 0.06172
}

Semantic roles & 50–950 ramp

primary
#4027BC
secondary
#BDCB73
accent
#E93FCC
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4027BC

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

Preview Lab → · Contrast checker → · Palette generator →

#4027BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva