#42289B#42289B

#42289B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.174 H 285.3°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#42289B
RGBrgb(66, 40, 155)
HSLhsl(254, 59%, 38%)
HSVhsv(254, 74%, 61%)
CMYKcmyk(57.4%, 74.2%, 0%, 39.2%)
CIE-LABlab(26.85, 42.51, -58.40)
CIE-LCHlch(26.85, 72.23, 306.05°)
OKLaboklab(38.82% 0.046 -0.1681)
OKLCHoklch(38.82% 0.174 285.3)
XYZxyz(8.9202, 5.0419, 31.5071)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42289B #819B28
analogous
#28489B #42289B #7B289B
triadic
#42289B #9B4228 #289B42
tetradic
#42289B #9B2848 #819B28 #289B7B
square
#42289B #9B2848 #819B28 #289B7B
split-complementary
#42289B #9B7B28 #489B28
monochromatic
#190F3A #2D1B6A #42289B #5735CB #8066D7

Accessibility & contrast

On white

10.46
#42289B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#42289B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42289B
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42289B#FFFFFF#000000##FFFFFF
##42289B1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#003C99
Tritanopia (blue-blind)
#16475F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #42289b;
/* rgb */ color: rgb(66, 40, 155);
/* oklch */ color: oklch(38.8% 0.174 285.3);
Tailwind
colors: {
  custom: {
    50: '#8165ba',
    500: '#42289b',
    950: '#000000',
  },
}
SCSS
$custom: #42289b;
$custom-light: #8165ba;
$custom-dark: #000000;
JSON
{
  "hex": "#42289b",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 155
  },
  "hsl": {
    "h": 253.565,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38818,
    "c": 0.17429,
    "h": 285.3
  },
  "luminance": 0.05042
}

Semantic roles & 50–950 ramp

primary
#42289B
secondary
#A9BD61
accent
#E246BF
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #42289B

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

Preview Lab → · Contrast checker → · Palette generator →

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