#42308B#42308B

#42308B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.6% C 0.144 H 286.6°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#42308B
RGBrgb(66, 48, 139)
HSLhsl(252, 49%, 37%)
HSVhsv(252, 65%, 55%)
CMYKcmyk(52.5%, 65.5%, 0%, 45.5%)
CIE-LABlab(27.12, 32.93, -48.11)
CIE-LCHlch(27.12, 58.30, 304.38°)
OKLaboklab(38.57% 0.0412 -0.138)
OKLCHoklch(38.57% 0.144 286.6)
XYZxyz(7.9625, 5.1358, 24.9928)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42308B #798B30
analogous
#304C8B #42308B #70308B
triadic
#42308B #8B4230 #308B42
tetradic
#42308B #8B304C #798B30 #308B70
square
#42308B #8B304C #798B30 #308B70
split-complementary
#42308B #8B7030 #4C8B30
monochromatic
#171130 #2C205E #42308B #5840B8 #7D6ACC

Accessibility & contrast

On white

10.36
#42308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#42308B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42308B
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42308B#FFFFFF#000000##FFFFFF
##42308B1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#274659
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #42308b;
/* rgb */ color: rgb(66, 48, 139);
/* oklch */ color: oklch(38.6% 0.144 286.6);
Tailwind
colors: {
  custom: {
    50: '#7d69ae',
    500: '#42308b',
    950: '#000000',
  },
}
SCSS
$custom: #42308b;
$custom-light: #7d69ae;
$custom-dark: #000000;
JSON
{
  "hex": "#42308b",
  "rgb": {
    "r": 66,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 251.868,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3857,
    "c": 0.14399,
    "h": 286.6
  },
  "luminance": 0.05136
}

Semantic roles & 50–950 ramp

primary
#42308B
secondary
#A3B364
accent
#D850BD
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #42308B

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

Preview Lab → · Contrast checker → · Palette generator →

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