#47238B#47238B

#47238B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.160 H 292.7°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#47238B
RGBrgb(71, 35, 139)
HSLhsl(261, 60%, 34%)
HSVhsv(261, 75%, 55%)
CMYKcmyk(48.9%, 74.8%, 0%, 45.5%)
CIE-LABlab(24.97, 41.23, -51.60)
CIE-LCHlch(24.97, 66.05, 308.63°)
OKLaboklab(37.16% 0.0618 -0.148)
OKLCHoklch(37.16% 0.16 292.7)
XYZxyz(7.8585, 4.4055, 24.8574)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47238B #678B23
analogous
#23338B #47238B #7B238B
triadic
#47238B #8B4723 #238B47
tetradic
#47238B #8B2333 #678B23 #238B7B
square
#47238B #8B2333 #678B23 #238B7B
split-complementary
#47238B #8B7B23 #338B23
monochromatic
#150A29 #2E175A #47238B #602FBC #8154D4

Accessibility & contrast

On white

11.16
#47238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#47238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47238B
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47238B#FFFFFF#000000##FFFFFF
##47238B1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#323E55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #47238b;
/* rgb */ color: rgb(71, 35, 139);
/* oklch */ color: oklch(37.2% 0.160 292.7);
Tailwind
colors: {
  custom: {
    50: '#8162ae',
    500: '#47238b',
    950: '#000000',
  },
}
SCSS
$custom: #47238b;
$custom-light: #8162ae;
$custom-dark: #000000;
JSON
{
  "hex": "#47238b",
  "rgb": {
    "r": 71,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 260.769,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37156,
    "c": 0.16035,
    "h": 292.7
  },
  "luminance": 0.04406
}

Semantic roles & 50–950 ramp

primary
#47238B
secondary
#95B852
accent
#E345AC
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #47238B

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

Preview Lab → · Contrast checker → · Palette generator →

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