#42247B#42247B

#42247B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.139 H 293.9°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#42247B
RGBrgb(66, 36, 123)
HSLhsl(261, 55%, 31%)
HSVhsv(261, 71%, 48%)
CMYKcmyk(46.3%, 70.7%, 0%, 51.8%)
CIE-LABlab(23.17, 35.13, -44.50)
CIE-LCHlch(23.17, 56.70, 308.29°)
OKLaboklab(35.31% 0.0564 -0.1273)
OKLCHoklch(35.31% 0.139 293.9)
XYZxyz(6.4518, 3.8499, 19.1382)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42247B #5D7B24
analogous
#24317B #42247B #6D247B
triadic
#42247B #7B4224 #247B42
tetradic
#42247B #7B2431 #5D7B24 #247B6D
square
#42247B #7B2431 #5D7B24 #247B6D
split-complementary
#42247B #7B6D24 #317B24
monochromatic
#0F081C #29164C #42247B #5B32AA #794ECB

Accessibility & contrast

On white

11.86
#42247B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#42247B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42247B
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42247B#FFFFFF#000000##FFFFFF
##42247B1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#32394C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #42247b;
/* rgb */ color: rgb(66, 36, 123);
/* oklch */ color: oklch(35.3% 0.139 293.9);
Tailwind
colors: {
  custom: {
    50: '#7c61a2',
    500: '#42247b',
    950: '#000000',
  },
}
SCSS
$custom: #42247b;
$custom-light: #7c61a2;
$custom-dark: #000000;
JSON
{
  "hex": "#42247b",
  "rgb": {
    "r": 66,
    "g": 36,
    "b": 123
  },
  "hsl": {
    "h": 260.69,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35305,
    "c": 0.13923,
    "h": 293.9
  },
  "luminance": 0.0385
}

Semantic roles & 50–950 ramp

primary
#42247B
secondary
#8CAD4D
accent
#DE4AAB
background
#F7F5FA
surface
#EEEAF3
border
#C9C6CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42247B

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

Preview Lab → · Contrast checker → · Palette generator →

#42247B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva