#4027B0#4027B0

#4027B0 is a dark, highly saturated violet. Relative luminance 0.057; OKLCH L 40.6% C 0.201 H 281.0°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#4027B0
RGBrgb(64, 39, 176)
HSLhsl(251, 64%, 42%)
HSVhsv(251, 78%, 69%)
CMYKcmyk(63.6%, 77.8%, 0%, 31%)
CIE-LABlab(28.58, 49.09, -68.27)
CIE-LCHlch(28.58, 84.08, 305.72°)
OKLaboklab(40.61% 0.0383 -0.197)
OKLCHoklch(40.61% 0.201 281)
XYZxyz(10.6739, 5.6748, 41.5987)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4027B0 #97B027
analogous
#2753B0 #4027B0 #8527B0
triadic
#4027B0 #B04027 #27B040
tetradic
#4027B0 #B02753 #97B027 #27B085
square
#4027B0 #B02753 #97B027 #27B085
split-complementary
#4027B0 #B08527 #53B027
monochromatic
#1C114C #2E1C7E #4027B0 #5B40D5 #8672E0

Accessibility & contrast

On white

9.84
#4027B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4027B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4027B0
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4027B0#FFFFFF#000000##FFFFFF
##4027B01.009.842.149.84
#FFFFFF9.841.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B4
Deuteranopia (green-blind)
#003EAE
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4027b0;
/* rgb */ color: rgb(64, 39, 176);
/* oklch */ color: oklch(40.6% 0.201 281.0);
Tailwind
colors: {
  custom: {
    50: '#8465c9',
    500: '#4027b0',
    950: '#000000',
  },
}
SCSS
$custom: #4027b0;
$custom-light: #8465c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4027b0",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 176
  },
  "hsl": {
    "h": 250.949,
    "s": 63.721,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40613,
    "c": 0.20069,
    "h": 281
  },
  "luminance": 0.05676
}

Semantic roles & 50–950 ramp

primary
#4027B0
secondary
#B6C76C
accent
#E741C9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4027B0

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

Preview Lab → · Contrast checker → · Palette generator →

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