#4218B4#4218B4

#4218B4 is a dark, highly saturated violet. Relative luminance 0.051; OKLCH L 39.7% C 0.216 H 282.6°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#4218B4
RGBrgb(66, 24, 180)
HSLhsl(256, 76%, 40%)
HSVhsv(256, 87%, 71%)
CMYKcmyk(63.3%, 86.7%, 0%, 29.4%)
CIE-LABlab(27.03, 56.75, -73.20)
CIE-LCHlch(27.03, 92.62, 307.78°)
OKLaboklab(39.72% 0.0474 -0.2111)
OKLCHoklch(39.72% 0.216 282.6)
XYZxyz(10.8091, 5.1060, 43.5871)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4218B4 #8AB418
analogous
#183CB4 #4218B4 #9018B4
triadic
#4218B4 #B44218 #18B442
tetradic
#4218B4 #B4183C #8AB418 #18B490
square
#4218B4 #B4183C #8AB418 #18B490
split-complementary
#4218B4 #B49018 #3CB418
monochromatic
#1A0A48 #2E117E #4218B4 #5927E2 #835DE9

Accessibility & contrast

On white

10.39
#4218B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4218B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4218B4
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4218B4#FFFFFF#000000##FFFFFF
##4218B41.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B8
Deuteranopia (green-blind)
#003BB1
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4218b4;
/* rgb */ color: rgb(66, 24, 180);
/* oklch */ color: oklch(39.7% 0.216 282.6);
Tailwind
colors: {
  custom: {
    50: '#865ecc',
    500: '#4218b4',
    950: '#000000',
  },
}
SCSS
$custom: #4218b4;
$custom-light: #865ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#4218b4",
  "rgb": {
    "r": 66,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 256.154,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.39723,
    "c": 0.21635,
    "h": 282.6
  },
  "luminance": 0.05107
}

Semantic roles & 50–950 ramp

primary
#4218B4
secondary
#AECD5B
accent
#F335C0
background
#F9F5FC
surface
#F1EAF9
border
#CBC6D2
text
#0D0514
muted
#7E7982

Preview Lab

Preview with #4218B4

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

Preview Lab → · Contrast checker → · Palette generator →

#4218B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva