#42269F#42269F

#42269F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.181 H 284.9°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#42269F
RGBrgb(66, 38, 159)
HSLhsl(254, 61%, 39%)
HSVhsv(254, 76%, 62%)
CMYKcmyk(58.5%, 76.1%, 0%, 37.6%)
CIE-LABlab(26.87, 44.76, -60.82)
CIE-LCHlch(26.87, 75.51, 306.35°)
OKLaboklab(38.95% 0.0465 -0.1752)
OKLCHoklch(38.95% 0.181 284.9)
XYZxyz(9.1960, 5.0471, 33.2838)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42269F #839F26
analogous
#26469F #42269F #7E269F
triadic
#42269F #9F4226 #269F42
tetradic
#42269F #9F2646 #839F26 #269F7E
square
#42269F #9F2646 #839F26 #269F7E
split-complementary
#42269F #9F7E26 #469F26
monochromatic
#190E3C #2D1A6E #42269F #5834CE #8065DA

Accessibility & contrast

On white

10.45
#42269F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#42269F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42269F
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42269F#FFFFFF#000000##FFFFFF
##42269F1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003C9D
Tritanopia (blue-blind)
#0F4861
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #42269f;
/* rgb */ color: rgb(66, 38, 159);
/* oklch */ color: oklch(38.9% 0.181 284.9);
Tailwind
colors: {
  custom: {
    50: '#8264bc',
    500: '#42269f',
    950: '#000000',
  },
}
SCSS
$custom: #42269f;
$custom-light: #8264bc;
$custom-dark: #000000;
JSON
{
  "hex": "#42269f",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 159
  },
  "hsl": {
    "h": 253.884,
    "s": 61.421,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38946,
    "c": 0.18124,
    "h": 284.9
  },
  "luminance": 0.05048
}

Semantic roles & 50–950 ramp

primary
#42269F
secondary
#AAC061
accent
#E543BF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #42269F

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

Preview Lab → · Contrast checker → · Palette generator →

#42269F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva