#42295B#42295B

#42295B is a dark, moderate violet. Relative luminance 0.035; OKLCH L 33.7% C 0.088 H 305.2°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#42295B
RGBrgb(66, 41, 91)
HSLhsl(270, 38%, 26%)
HSVhsv(270, 55%, 36%)
CMYKcmyk(27.5%, 54.9%, 0%, 64.3%)
CIE-LABlab(21.94, 22.89, -25.74)
CIE-LCHlch(21.94, 34.45, 311.65°)
OKLaboklab(33.66% 0.051 -0.0723)
OKLCHoklch(33.66% 0.088 305.2)
XYZxyz(4.9276, 3.4995, 10.3114)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42295B #425B29
analogous
#29295B #42295B #5B295B
triadic
#42295B #5B4229 #295B42
tetradic
#42295B #5B2929 #425B29 #295B5B
square
#42295B #5B2929 #425B29 #295B5B
split-complementary
#42295B #5B5B29 #295B29
monochromatic
#0F0A15 #231631 #42295B #613C85 #7F4FAF

Accessibility & contrast

On white

12.35
#42295B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42295B
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42295B#FFFFFF#000000##FFFFFF
##42295B1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A345D
Deuteranopia (green-blind)
#21355A
Tritanopia (blue-blind)
#3E323D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #42295b;
/* rgb */ color: rgb(66, 41, 91);
/* oklch */ color: oklch(33.7% 0.088 305.2);
Tailwind
colors: {
  custom: {
    50: '#78638a',
    500: '#42295b',
    950: '#000000',
  },
}
SCSS
$custom: #42295b;
$custom-light: #78638a;
$custom-dark: #000000;
JSON
{
  "hex": "#42295b",
  "rgb": {
    "r": 66,
    "g": 41,
    "b": 91
  },
  "hsl": {
    "h": 270,
    "s": 37.879,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3366,
    "c": 0.08848,
    "h": 305.2
  },
  "luminance": 0.03499
}

Semantic roles & 50–950 ramp

primary
#42295B
secondary
#708E52
accent
#CE5A94
background
#F7F5F8
surface
#EDEAF0
border
#C8C6CB
text
#09050B
muted
#7B797C

Preview Lab

Preview with #42295B

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

Preview Lab → · Contrast checker → · Palette generator →

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