#4029AF#4029AF

#4029AF is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.198 H 280.9°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#4029AF
RGBrgb(64, 41, 175)
HSLhsl(250, 62%, 42%)
HSVhsv(250, 77%, 69%)
CMYKcmyk(63.4%, 76.6%, 0%, 31.4%)
CIE-LABlab(28.83, 47.78, -67.26)
CIE-LCHlch(28.83, 82.50, 305.39°)
OKLaboklab(40.76% 0.0374 -0.1941)
OKLCHoklch(40.76% 0.198 280.9)
XYZxyz(10.6427, 5.7702, 41.1021)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4029AF #98AF29
analogous
#2955AF #4029AF #8329AF
triadic
#4029AF #AF4029 #29AF40
tetradic
#4029AF #AF2955 #98AF29 #29AF83
square
#4029AF #AF2955 #98AF29 #29AF83
split-complementary
#4029AF #AF8329 #55AF29
monochromatic
#1C124C #2E1D7D #4029AF #5B42D3 #8674DE

Accessibility & contrast

On white

9.75
#4029AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4029AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4029AF
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4029AF#FFFFFF#000000##FFFFFF
##4029AF1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#003FAD
Tritanopia (blue-blind)
#00506B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4029af;
/* rgb */ color: rgb(64, 41, 175);
/* oklch */ color: oklch(40.8% 0.198 280.9);
Tailwind
colors: {
  custom: {
    50: '#8366c8',
    500: '#4029af',
    950: '#000000',
  },
}
SCSS
$custom: #4029af;
$custom-light: #8366c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4029af",
  "rgb": {
    "r": 64,
    "g": 41,
    "b": 175
  },
  "hsl": {
    "h": 250.299,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40756,
    "c": 0.19764,
    "h": 280.9
  },
  "luminance": 0.05771
}

Semantic roles & 50–950 ramp

primary
#4029AF
secondary
#B7C66E
accent
#E543C9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4029AF

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

Preview Lab → · Contrast checker → · Palette generator →

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