#42269B#42269B

#42269B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.176 H 285.6°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#42269B
RGBrgb(66, 38, 155)
HSLhsl(254, 61%, 38%)
HSVhsv(254, 75%, 61%)
CMYKcmyk(57.4%, 75.5%, 0%, 39.2%)
CIE-LABlab(26.48, 43.57, -59.02)
CIE-LCHlch(26.48, 73.36, 306.43°)
OKLaboklab(38.55% 0.0476 -0.1699)
OKLCHoklch(38.55% 0.176 285.6)
XYZxyz(8.8545, 4.9105, 31.4852)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42269B #7F9B26
analogous
#26449B #42269B #7C269B
triadic
#42269B #9B4226 #269B42
tetradic
#42269B #9B2644 #7F9B26 #269B7C
square
#42269B #9B2644 #7F9B26 #269B7C
split-complementary
#42269B #9B7C26 #449B26
monochromatic
#180E39 #2D1A6A #42269B #5732CC #7F63D9

Accessibility & contrast

On white

10.59
#42269B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#42269B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42269B
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42269B#FFFFFF#000000##FFFFFF
##42269B1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003B99
Tritanopia (blue-blind)
#17475F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #42269b;
/* rgb */ color: rgb(66, 38, 155);
/* oklch */ color: oklch(38.6% 0.176 285.6);
Tailwind
colors: {
  custom: {
    50: '#8164ba',
    500: '#42269b',
    950: '#000000',
  },
}
SCSS
$custom: #42269b;
$custom-light: #8164ba;
$custom-dark: #000000;
JSON
{
  "hex": "#42269b",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 155
  },
  "hsl": {
    "h": 254.359,
    "s": 60.622,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38553,
    "c": 0.17644,
    "h": 285.6
  },
  "luminance": 0.04911
}

Semantic roles & 50–950 ramp

primary
#42269B
secondary
#A7BE5F
accent
#E444BE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #42269B

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

Preview Lab → · Contrast checker → · Palette generator →

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