#42296B#42296B

#42296B is a dark, moderate violet. Relative luminance 0.038; OKLCH L 34.8% C 0.111 H 297.9°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#42296B
RGBrgb(66, 41, 107)
HSLhsl(263, 45%, 29%)
HSVhsv(263, 62%, 42%)
CMYKcmyk(38.3%, 61.7%, 0%, 58%)
CIE-LABlab(23.02, 27.45, -34.49)
CIE-LCHlch(23.02, 44.08, 308.52°)
OKLaboklab(34.8% 0.0517 -0.0979)
OKLCHoklch(34.8% 0.111 297.9)
XYZxyz(5.6929, 3.8056, 14.3417)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42296B #526B29
analogous
#29316B #42296B #63296B
triadic
#42296B #6B4229 #296B42
tetradic
#42296B #6B2931 #526B29 #296B63
square
#42296B #6B2931 #526B29 #296B63
split-complementary
#42296B #6B6329 #316B29
monochromatic
#0E0816 #27183F #42296B #5D3A97 #7A52BD

Accessibility & contrast

On white

11.92
#42296B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#42296B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42296B
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42296B#FFFFFF#000000##FFFFFF
##42296B1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05376D
Deuteranopia (green-blind)
#11366A
Tritanopia (blue-blind)
#393745
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #42296b;
/* rgb */ color: rgb(66, 41, 107);
/* oklch */ color: oklch(34.8% 0.111 297.9);
Tailwind
colors: {
  custom: {
    50: '#796496',
    500: '#42296b',
    950: '#000000',
  },
}
SCSS
$custom: #42296b;
$custom-light: #796496;
$custom-dark: #000000;
JSON
{
  "hex": "#42296b",
  "rgb": {
    "r": 66,
    "g": 41,
    "b": 107
  },
  "hsl": {
    "h": 262.727,
    "s": 44.595,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34799,
    "c": 0.11072,
    "h": 297.9
  },
  "luminance": 0.03806
}

Semantic roles & 50–950 ramp

primary
#42296B
secondary
#819D52
accent
#D453A4
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09050D
muted
#7B7A7E

Preview Lab

Preview with #42296B

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

Preview Lab → · Contrast checker → · Palette generator →

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