#42246B#42246B

#42246B is a dark, moderate violet. Relative luminance 0.035; OKLCH L 34.0% C 0.119 H 299.5°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#42246B
RGBrgb(66, 36, 107)
HSLhsl(265, 50%, 28%)
HSVhsv(265, 66%, 42%)
CMYKcmyk(38.3%, 66.4%, 0%, 58%)
CIE-LABlab(21.88, 30.49, -36.33)
CIE-LCHlch(21.88, 47.43, 310.01°)
OKLaboklab(33.97% 0.0584 -0.1033)
OKLCHoklch(33.97% 0.119 299.5)
XYZxyz(5.5308, 3.4815, 14.2877)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42246B #4D6B24
analogous
#242A6B #42246B #65246B
triadic
#42246B #6B4224 #246B42
tetradic
#42246B #6B242A #4D6B24 #246B65
square
#42246B #6B242A #4D6B24 #246B65
split-complementary
#42246B #6B6524 #2A6B24
monochromatic
#0E0817 #26153D #42246B #5E3399 #7B48C1

Accessibility & contrast

On white

12.38
#42246B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#42246B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42246B
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42246B#FFFFFF#000000##FFFFFF
##42246B1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#063469
Tritanopia (blue-blind)
#393444
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #42246b;
/* rgb */ color: rgb(66, 36, 107);
/* oklch */ color: oklch(34.0% 0.119 299.5);
Tailwind
colors: {
  custom: {
    50: '#7a6096',
    500: '#42246b',
    950: '#000000',
  },
}
SCSS
$custom: #42246b;
$custom-light: #7a6096;
$custom-dark: #000000;
JSON
{
  "hex": "#42246b",
  "rgb": {
    "r": 66,
    "g": 36,
    "b": 107
  },
  "hsl": {
    "h": 265.352,
    "s": 49.65,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33968,
    "c": 0.11863,
    "h": 299.5
  },
  "luminance": 0.03482
}

Semantic roles & 50–950 ramp

primary
#42246B
secondary
#7C9E4D
accent
#D94F9F
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #42246B

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

Preview Lab → · Contrast checker → · Palette generator →

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