#42299B#42299B

#42299B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.173 H 285.1°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#42299B
RGBrgb(66, 41, 155)
HSLhsl(253, 58%, 38%)
HSVhsv(253, 74%, 61%)
CMYKcmyk(57.4%, 73.5%, 0%, 39.2%)
CIE-LABlab(27.05, 41.97, -58.08)
CIE-LCHlch(27.05, 71.66, 305.85°)
OKLaboklab(38.95% 0.0452 -0.1672)
OKLCHoklch(38.95% 0.173 285.1)
XYZxyz(8.9543, 5.1102, 31.5185)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42299B #829B29
analogous
#29499B #42299B #7B299B
triadic
#42299B #9B4229 #299B42
tetradic
#42299B #9B2949 #829B29 #299B7B
square
#42299B #9B2949 #829B29 #299B7B
split-complementary
#42299B #9B7B29 #499B29
monochromatic
#190F3A #2D1C6B #42299B #5737CA #8067D7

Accessibility & contrast

On white

10.38
#42299B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#42299B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42299B
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42299B#FFFFFF#000000##FFFFFF
##42299B1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#003C99
Tritanopia (blue-blind)
#16485F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #42299b;
/* rgb */ color: rgb(66, 41, 155);
/* oklch */ color: oklch(39.0% 0.173 285.1);
Tailwind
colors: {
  custom: {
    50: '#8165ba',
    500: '#42299b',
    950: '#000000',
  },
}
SCSS
$custom: #42299b;
$custom-light: #8165ba;
$custom-dark: #000000;
JSON
{
  "hex": "#42299b",
  "rgb": {
    "r": 66,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 253.158,
    "s": 58.163,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38954,
    "c": 0.17319,
    "h": 285.1
  },
  "luminance": 0.05111
}

Semantic roles & 50–950 ramp

primary
#42299B
secondary
#A9BD63
accent
#E146BF
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #42299B

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

Preview Lab → · Contrast checker → · Palette generator →

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