#4027BA#4027BA

#4027BA is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 41.7% C 0.212 H 279.6°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#4027BA
RGBrgb(64, 39, 186)
HSLhsl(250, 65%, 44%)
HSVhsv(250, 79%, 73%)
CMYKcmyk(65.6%, 79%, 0%, 27.1%)
CIE-LABlab(29.63, 52.06, -72.49)
CIE-LCHlch(29.63, 89.24, 305.69°)
OKLaboklab(41.66% 0.0355 -0.2093)
OKLCHoklch(41.66% 0.212 279.6)
XYZxyz(11.7000, 6.0852, 47.0029)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4027BA #A1BA27
analogous
#2758BA #4027BA #8A27BA
triadic
#4027BA #BA4027 #27BA40
tetradic
#4027BA #BA2758 #A1BA27 #27BA8A
square
#4027BA #BA2758 #A1BA27 #27BA8A
split-complementary
#4027BA #BA8A27 #58BA27
monochromatic
#1D1255 #2F1C87 #4027BA #5F46D8 #8B79E3

Accessibility & contrast

On white

9.47
#4027BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4027BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4027BA
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4027BA#FFFFFF#000000##FFFFFF
##4027BA1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBE
Deuteranopia (green-blind)
#0040B7
Tritanopia (blue-blind)
#005370
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4027ba;
/* rgb */ color: rgb(64, 39, 186);
/* oklch */ color: oklch(41.7% 0.212 279.6);
Tailwind
colors: {
  custom: {
    50: '#8666d0',
    500: '#4027ba',
    950: '#000000',
  },
}
SCSS
$custom: #4027ba;
$custom-light: #8666d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4027ba",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 250.204,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.41657,
    "c": 0.21228,
    "h": 279.6
  },
  "luminance": 0.06086
}

Semantic roles & 50–950 ramp

primary
#4027BA
secondary
#BCCB72
accent
#E840CC
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0D0614
muted
#7D7A83

Preview Lab

Preview with #4027BA

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

Preview Lab → · Contrast checker → · Palette generator →

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