#42239E#42239E

#42239E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.183 H 285.5°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#42239E
RGBrgb(66, 35, 158)
HSLhsl(255, 64%, 38%)
HSVhsv(255, 78%, 62%)
CMYKcmyk(58.2%, 77.8%, 0%, 38%)
CIE-LABlab(26.24, 45.97, -61.24)
CIE-LCHlch(26.24, 76.58, 306.90°)
OKLaboklab(38.48% 0.049 -0.1764)
OKLCHoklch(38.48% 0.183 285.5)
XYZxyz(9.0175, 4.8284, 32.7979)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42239E #7F9E23
analogous
#23419E #42239E #7F239E
triadic
#42239E #9E4223 #239E42
tetradic
#42239E #9E2341 #7F9E23 #239E7F
square
#42239E #9E2341 #7F9E23 #239E7F
split-complementary
#42239E #9E7F23 #419E23
monochromatic
#180D3A #2D186C #42239E #572ED0 #7F60DC

Accessibility & contrast

On white

10.68
#42239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42239E
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42239E#FFFFFF#000000##FFFFFF
##42239E1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#124660
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #42239e;
/* rgb */ color: rgb(66, 35, 158);
/* oklch */ color: oklch(38.5% 0.183 285.5);
Tailwind
colors: {
  custom: {
    50: '#8262bc',
    500: '#42239e',
    950: '#000000',
  },
}
SCSS
$custom: #42239e;
$custom-light: #8262bc;
$custom-dark: #000000;
JSON
{
  "hex": "#42239e",
  "rgb": {
    "r": 66,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 255.122,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38475,
    "c": 0.18306,
    "h": 285.5
  },
  "luminance": 0.04829
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42239E

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

Preview Lab → · Contrast checker → · Palette generator →

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