#42249F#42249F

#42249F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.183 H 285.2°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#42249F
RGBrgb(66, 36, 159)
HSLhsl(255, 63%, 38%)
HSVhsv(255, 77%, 62%)
CMYKcmyk(58.5%, 77.4%, 0%, 37.6%)
CIE-LABlab(26.51, 45.77, -61.40)
CIE-LCHlch(26.51, 76.58, 306.70°)
OKLaboklab(38.7% 0.048 -0.1769)
OKLCHoklch(38.7% 0.183 285.2)
XYZxyz(9.1337, 4.9227, 33.2630)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42249F #819F24
analogous
#24439F #42249F #7F249F
triadic
#42249F #9F4224 #249F42
tetradic
#42249F #9F2443 #819F24 #249F7F
square
#42249F #9F2443 #819F24 #249F7F
split-complementary
#42249F #9F7F24 #439F24
monochromatic
#190D3B #2D196D #42249F #5730D0 #8062DB

Accessibility & contrast

On white

10.58
#42249F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#42249F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42249F
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42249F#FFFFFF#000000##FFFFFF
##42249F1.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42249f;
/* rgb */ color: rgb(66, 36, 159);
/* oklch */ color: oklch(38.7% 0.183 285.2);
Tailwind
colors: {
  custom: {
    50: '#8263bd',
    500: '#42249f',
    950: '#000000',
  },
}
SCSS
$custom: #42249f;
$custom-light: #8263bd;
$custom-dark: #000000;
JSON
{
  "hex": "#42249f",
  "rgb": {
    "r": 66,
    "g": 36,
    "b": 159
  },
  "hsl": {
    "h": 254.634,
    "s": 63.077,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38696,
    "c": 0.18325,
    "h": 285.2
  },
  "luminance": 0.04923
}

Semantic roles & 50–950 ramp

primary
#42249F
secondary
#A9C15E
accent
#E642BE
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #42249F

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

Preview Lab → · Contrast checker → · Palette generator →

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