#38239A#38239A

#38239A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.180 H 281.2°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#38239A
RGBrgb(56, 35, 154)
HSLhsl(251, 63%, 37%)
HSVhsv(251, 77%, 60%)
CMYKcmyk(63.6%, 77.3%, 0%, 39.6%)
CIE-LABlab(24.88, 43.51, -61.08)
CIE-LCHlch(24.88, 74.99, 305.46°)
OKLaboklab(37.16% 0.0349 -0.1762)
OKLCHoklch(37.16% 0.18 281.2)
XYZxyz(8.0628, 4.3753, 30.9852)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38239A #859A23
analogous
#234A9A #38239A #74239A
triadic
#38239A #9A3823 #239A38
tetradic
#38239A #9A234A #859A23 #239A74
square
#38239A #9A234A #859A23 #239A74
split-complementary
#38239A #9A7423 #4A9A23
monochromatic
#140C36 #261868 #38239A #4A2ECC #735DDA

Accessibility & contrast

On white

11.20
#38239A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#38239A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38239A
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38239A#FFFFFF#000000##FFFFFF
##38239A1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9D
Deuteranopia (green-blind)
#003798
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #38239a;
/* rgb */ color: rgb(56, 35, 154);
/* oklch */ color: oklch(37.2% 0.180 281.2);
Tailwind
colors: {
  custom: {
    50: '#7c61b9',
    500: '#38239a',
    950: '#000000',
  },
}
SCSS
$custom: #38239a;
$custom-light: #7c61b9;
$custom-dark: #000000;
JSON
{
  "hex": "#38239a",
  "rgb": {
    "r": 56,
    "g": 35,
    "b": 154
  },
  "hsl": {
    "h": 250.588,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37163,
    "c": 0.17963,
    "h": 281.2
  },
  "luminance": 0.04376
}

Semantic roles & 50–950 ramp

primary
#38239A
secondary
#ADBF5A
accent
#E642C9
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #38239A

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

Preview Lab → · Contrast checker → · Palette generator →

#38239A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva