#42299C#42299C

#42299C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.174 H 284.9°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#42299C
RGBrgb(66, 41, 156)
HSLhsl(253, 58%, 39%)
HSVhsv(253, 74%, 61%)
CMYKcmyk(57.7%, 73.7%, 0%, 38.8%)
CIE-LABlab(27.14, 42.27, -58.54)
CIE-LCHlch(27.14, 72.21, 305.83°)
OKLaboklab(39.05% 0.0449 -0.1685)
OKLCHoklch(39.05% 0.174 284.9)
XYZxyz(9.0386, 5.1439, 31.9626)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42299C #839C29
analogous
#29499C #42299C #7B299C
triadic
#42299C #9C4229 #299C42
tetradic
#42299C #9C2949 #839C29 #299C7B
square
#42299C #9C2949 #839C29 #299C7B
split-complementary
#42299C #9C7B29 #499C29
monochromatic
#19103B #2D1C6C #42299C #5838CB #8068D7

Accessibility & contrast

On white

10.35
#42299C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#42299C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42299C
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42299C#FFFFFF#000000##FFFFFF
##42299C1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#003D9A
Tritanopia (blue-blind)
#154860
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #42299c;
/* rgb */ color: rgb(66, 41, 156);
/* oklch */ color: oklch(39.1% 0.174 284.9);
Tailwind
colors: {
  custom: {
    50: '#8165ba',
    500: '#42299c',
    950: '#000000',
  },
}
SCSS
$custom: #42299c;
$custom-light: #8165ba;
$custom-dark: #000000;
JSON
{
  "hex": "#42299c",
  "rgb": {
    "r": 66,
    "g": 41,
    "b": 156
  },
  "hsl": {
    "h": 253.043,
    "s": 58.376,
    "l": 38.627
  },
  "oklch": {
    "l": 0.3905,
    "c": 0.17442,
    "h": 284.9
  },
  "luminance": 0.05144
}

Semantic roles & 50–950 ramp

primary
#42299C
secondary
#AABE63
accent
#E246C0
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #42299C

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

Preview Lab → · Contrast checker → · Palette generator →

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