#42268D#42268D

#42268D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.159 H 288.6°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#42268D
RGBrgb(66, 38, 141)
HSLhsl(256, 58%, 35%)
HSVhsv(256, 73%, 55%)
CMYKcmyk(53.2%, 73%, 0%, 44.7%)
CIE-LABlab(25.16, 39.37, -52.55)
CIE-LCHlch(25.16, 65.66, 306.84°)
OKLaboklab(37.22% 0.0509 -0.151)
OKLCHoklch(37.22% 0.159 288.6)
XYZxyz(7.7462, 4.4672, 25.6482)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42268D #718D26
analogous
#263D8D #42268D #76268D
triadic
#42268D #8D4226 #268D42
tetradic
#42268D #8D263D #718D26 #268D76
square
#42268D #8D263D #718D26 #268D76
split-complementary
#42268D #8D7626 #3D8D26
monochromatic
#150C2D #2B195D #42268D #5933BD #7B5BD3

Accessibility & contrast

On white

11.09
#42268D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#42268D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42268D
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42268D#FFFFFF#000000##FFFFFF
##42268D1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#264157
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #42268d;
/* rgb */ color: rgb(66, 38, 141);
/* oklch */ color: oklch(37.2% 0.159 288.6);
Tailwind
colors: {
  custom: {
    50: '#7e63af',
    500: '#42268d',
    950: '#000000',
  },
}
SCSS
$custom: #42268d;
$custom-light: #7e63af;
$custom-dark: #000000;
JSON
{
  "hex": "#42268d",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 141
  },
  "hsl": {
    "h": 256.311,
    "s": 57.542,
    "l": 35.098
  },
  "oklch": {
    "l": 0.37217,
    "c": 0.15931,
    "h": 288.6
  },
  "luminance": 0.04468
}

Semantic roles & 50–950 ramp

primary
#42268D
secondary
#9DB857
accent
#E147B7
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #42268D

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

Preview Lab → · Contrast checker → · Palette generator →

#42268D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva