#42287F#42287F

#42287F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.139 H 291.7°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#42287F
RGBrgb(66, 40, 127)
HSLhsl(258, 52%, 33%)
HSVhsv(258, 69%, 50%)
CMYKcmyk(48%, 68.5%, 0%, 50.2%)
CIE-LABlab(24.35, 34.02, -45.11)
CIE-LCHlch(24.35, 56.50, 307.02°)
OKLaboklab(36.26% 0.0514 -0.1291)
OKLCHoklch(36.26% 0.139 291.7)
XYZxyz(6.8353, 4.2079, 20.5266)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42287F #657F28
analogous
#28397F #42287F #6D287F
triadic
#42287F #7F4228 #287F42
tetradic
#42287F #7F2839 #657F28 #287F6D
square
#42287F #7F2839 #657F28 #287F6D
split-complementary
#42287F #7F6D28 #397F28
monochromatic
#120B22 #2A1950 #42287F #5A37AE #7A57CA

Accessibility & contrast

On white

11.40
#42287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#42287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42287F
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42287F#FFFFFF#000000##FFFFFF
##42287F1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#2F3D50
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #42287f;
/* rgb */ color: rgb(66, 40, 127);
/* oklch */ color: oklch(36.3% 0.139 291.7);
Tailwind
colors: {
  custom: {
    50: '#7c64a5',
    500: '#42287f',
    950: '#000000',
  },
}
SCSS
$custom: #42287f;
$custom-light: #7c64a5;
$custom-dark: #000000;
JSON
{
  "hex": "#42287f",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 257.931,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36256,
    "c": 0.13898,
    "h": 291.7
  },
  "luminance": 0.04208
}

Semantic roles & 50–950 ramp

primary
#42287F
secondary
#94AF54
accent
#DC4CB1
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #42287F

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

Preview Lab → · Contrast checker → · Palette generator →

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