#42239F#42239F

#42239F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.184 H 285.3°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#42239F
RGBrgb(66, 35, 159)
HSLhsl(255, 64%, 38%)
HSVhsv(255, 78%, 62%)
CMYKcmyk(58.5%, 78%, 0%, 37.6%)
CIE-LABlab(26.34, 46.27, -61.68)
CIE-LCHlch(26.34, 77.11, 306.87°)
OKLaboklab(38.58% 0.0487 -0.1777)
OKLCHoklch(38.58% 0.184 285.3)
XYZxyz(9.1039, 4.8630, 33.2531)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42239F #809F23
analogous
#23429F #42239F #80239F
triadic
#42239F #9F4223 #239F42
tetradic
#42239F #9F2342 #809F23 #239F80
square
#42239F #9F2342 #809F23 #239F80
split-complementary
#42239F #9F8023 #429F23
monochromatic
#180D3B #2D186D #42239F #572ED1 #7F60DC

Accessibility & contrast

On white

10.64
#42239F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#42239F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42239F
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42239F#FFFFFF#000000##FFFFFF
##42239F1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#003A9D
Tritanopia (blue-blind)
#104760
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #42239f;
/* rgb */ color: rgb(66, 35, 159);
/* oklch */ color: oklch(38.6% 0.184 285.3);
Tailwind
colors: {
  custom: {
    50: '#8262bd',
    500: '#42239f',
    950: '#000000',
  },
}
SCSS
$custom: #42239f;
$custom-light: #8262bd;
$custom-dark: #000000;
JSON
{
  "hex": "#42239f",
  "rgb": {
    "r": 66,
    "g": 35,
    "b": 159
  },
  "hsl": {
    "h": 255,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38576,
    "c": 0.18422,
    "h": 285.3
  },
  "luminance": 0.04864
}

Semantic roles & 50–950 ramp

primary
#42239F
secondary
#A8C15D
accent
#E741BD
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #42239F

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

Preview Lab → · Contrast checker → · Palette generator →

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