#4023AF#4023AF

#4023AF is a dark, highly saturated violet. Relative luminance 0.054; OKLCH L 40.0% C 0.203 H 281.6°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#4023AF
RGBrgb(64, 35, 175)
HSLhsl(252, 67%, 41%)
HSVhsv(252, 80%, 69%)
CMYKcmyk(63.4%, 80%, 0%, 31.4%)
CIE-LABlab(27.81, 50.71, -68.94)
CIE-LCHlch(27.81, 85.58, 306.34°)
OKLaboklab(40.05% 0.0409 -0.1989)
OKLCHoklch(40.05% 0.203 281.6)
XYZxyz(10.4508, 5.3864, 41.0381)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4023AF #92AF23
analogous
#234CAF #4023AF #8623AF
triadic
#4023AF #AF4023 #23AF40
tetradic
#4023AF #AF234C #92AF23 #23AF86
square
#4023AF #AF234C #92AF23 #23AF86
split-complementary
#4023AF #AF8623 #4CAF23
monochromatic
#1B0F49 #2D197C #4023AF #5938D7 #846BE1

Accessibility & contrast

On white

10.11
#4023AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4023AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4023AF
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4023AF#FFFFFF#000000##FFFFFF
##4023AF1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B3
Deuteranopia (green-blind)
#003DAD
Tritanopia (blue-blind)
#004D69
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4023af;
/* rgb */ color: rgb(64, 35, 175);
/* oklch */ color: oklch(40.0% 0.203 281.6);
Tailwind
colors: {
  custom: {
    50: '#8463c8',
    500: '#4023af',
    950: '#000000',
  },
}
SCSS
$custom: #4023af;
$custom-light: #8463c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4023af",
  "rgb": {
    "r": 64,
    "g": 35,
    "b": 175
  },
  "hsl": {
    "h": 252.429,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40047,
    "c": 0.20305,
    "h": 281.6
  },
  "luminance": 0.05387
}

Semantic roles & 50–950 ramp

primary
#4023AF
secondary
#B3C766
accent
#EA3EC6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4023AF

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

Preview Lab → · Contrast checker → · Palette generator →

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