#4023B2#4023B2

#4023B2 is a dark, highly saturated violet. Relative luminance 0.055; OKLCH L 40.4% C 0.206 H 281.2°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#4023B2
RGBrgb(64, 35, 178)
HSLhsl(252, 67%, 42%)
HSVhsv(252, 80%, 70%)
CMYKcmyk(64%, 80.3%, 0%, 30.2%)
CIE-LABlab(28.13, 51.58, -70.20)
CIE-LCHlch(28.13, 87.11, 306.31°)
OKLaboklab(40.36% 0.0399 -0.2026)
OKLCHoklch(40.36% 0.206 281.2)
XYZxyz(10.7487, 5.5056, 42.6071)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4023B2 #95B223
analogous
#234EB2 #4023B2 #8823B2
triadic
#4023B2 #B24023 #23B240
tetradic
#4023B2 #B2234E #95B223 #23B288
square
#4023B2 #B2234E #95B223 #23B288
split-complementary
#4023B2 #B28823 #4EB223
monochromatic
#1B0F4C #2E197F #4023B2 #5A3AD8 #856DE2

Accessibility & contrast

On white

9.99
#4023B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4023B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4023B2
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4023B2#FFFFFF#000000##FFFFFF
##4023B21.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B6
Deuteranopia (green-blind)
#003DB0
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4023b2;
/* rgb */ color: rgb(64, 35, 178);
/* oklch */ color: oklch(40.4% 0.206 281.2);
Tailwind
colors: {
  custom: {
    50: '#8463ca',
    500: '#4023b2',
    950: '#000000',
  },
}
SCSS
$custom: #4023b2;
$custom-light: #8463ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4023b2",
  "rgb": {
    "r": 64,
    "g": 35,
    "b": 178
  },
  "hsl": {
    "h": 252.168,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40364,
    "c": 0.20649,
    "h": 281.2
  },
  "luminance": 0.05506
}

Semantic roles & 50–950 ramp

primary
#4023B2
secondary
#B5C968
accent
#EA3EC7
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4023B2

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

Preview Lab → · Contrast checker → · Palette generator →

#4023B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva