#42299F#42299F

#42299F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.178 H 284.4°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#42299F
RGBrgb(66, 41, 159)
HSLhsl(253, 59%, 39%)
HSVhsv(253, 74%, 62%)
CMYKcmyk(58.5%, 74.2%, 0%, 37.6%)
CIE-LABlab(27.43, 43.18, -59.90)
CIE-LCHlch(27.43, 73.84, 305.79°)
OKLaboklab(39.34% 0.0442 -0.1725)
OKLCHoklch(39.34% 0.178 284.4)
XYZxyz(9.2958, 5.2468, 33.3171)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42299F #869F29
analogous
#294B9F #42299F #7D299F
triadic
#42299F #9F4229 #299F42
tetradic
#42299F #9F294B #869F29 #299F7D
square
#42299F #9F294B #869F29 #299F7D
split-complementary
#42299F #9F7D29 #4B9F29
monochromatic
#1A103E #2E1C6E #42299F #5839CC #816AD9

Accessibility & contrast

On white

10.25
#42299F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#42299F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42299F
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42299F#FFFFFF#000000##FFFFFF
##42299F1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#003D9D
Tritanopia (blue-blind)
#0F4962
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #42299f;
/* rgb */ color: rgb(66, 41, 159);
/* oklch */ color: oklch(39.3% 0.178 284.4);
Tailwind
colors: {
  custom: {
    50: '#8166bc',
    500: '#42299f',
    950: '#000000',
  },
}
SCSS
$custom: #42299f;
$custom-light: #8166bc;
$custom-dark: #000000;
JSON
{
  "hex": "#42299f",
  "rgb": {
    "r": 66,
    "g": 41,
    "b": 159
  },
  "hsl": {
    "h": 252.712,
    "s": 59,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39339,
    "c": 0.17809,
    "h": 284.4
  },
  "luminance": 0.05247
}

Semantic roles & 50–950 ramp

primary
#42299F
secondary
#ACBF65
accent
#E246C1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #42299F

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

Preview Lab → · Contrast checker → · Palette generator →

#42299F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva