#42267B#42267B

#42267B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.6% C 0.137 H 293.4°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#42267B
RGBrgb(66, 38, 123)
HSLhsl(260, 53%, 32%)
HSVhsv(260, 69%, 48%)
CMYKcmyk(46.3%, 69.1%, 0%, 51.8%)
CIE-LABlab(23.59, 33.99, -43.82)
CIE-LCHlch(23.59, 55.46, 307.80°)
OKLaboklab(35.6% 0.0541 -0.1253)
OKLCHoklch(35.6% 0.137 293.4)
XYZxyz(6.5141, 3.9743, 19.1590)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42267B #5F7B26
analogous
#26357B #42267B #6D267B
triadic
#42267B #7B4226 #267B42
tetradic
#42267B #7B2635 #5F7B26 #267B6D
square
#42267B #7B2635 #5F7B26 #267B6D
split-complementary
#42267B #7B6D26 #357B26
monochromatic
#10091D #29184C #42267B #5B34AA #7952CA

Accessibility & contrast

On white

11.70
#42267B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#42267B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42267B
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42267B#FFFFFF#000000##FFFFFF
##42267B1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#323A4D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #42267b;
/* rgb */ color: rgb(66, 38, 123);
/* oklch */ color: oklch(35.6% 0.137 293.4);
Tailwind
colors: {
  custom: {
    50: '#7c62a2',
    500: '#42267b',
    950: '#000000',
  },
}
SCSS
$custom: #42267b;
$custom-light: #7c62a2;
$custom-dark: #000000;
JSON
{
  "hex": "#42267b",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 123
  },
  "hsl": {
    "h": 259.765,
    "s": 52.795,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35604,
    "c": 0.13652,
    "h": 293.4
  },
  "luminance": 0.03975
}

Semantic roles & 50–950 ramp

primary
#42267B
secondary
#8EAD50
accent
#DC4CAD
background
#F7F5FA
surface
#EEEAF3
border
#C9C6CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42267B

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

Preview Lab → · Contrast checker → · Palette generator →

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