#38239B#38239B

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

Color values

HEX#38239B
RGBrgb(56, 35, 155)
HSLhsl(251, 63%, 37%)
HSVhsv(251, 77%, 61%)
CMYKcmyk(63.9%, 77.4%, 0%, 39.2%)
CIE-LABlab(24.98, 43.82, -61.52)
CIE-LCHlch(24.98, 75.53, 305.46°)
OKLaboklab(37.27% 0.0346 -0.1775)
OKLCHoklch(37.27% 0.181 281)
XYZxyz(8.1464, 4.4088, 31.4257)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38239B #869B23
analogous
#234A9B #38239B #74239B
triadic
#38239B #9B3823 #239B38
tetradic
#38239B #9B234A #869B23 #239B74
square
#38239B #9B234A #869B23 #239B74
split-complementary
#38239B #9B7423 #4A9B23
monochromatic
#140C37 #261869 #38239B #4A2ECD #745EDB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##38239B#FFFFFF#000000##FFFFFF
##38239B1.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)
#003F9E
Deuteranopia (green-blind)
#003799
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #38239b;
/* rgb */ color: rgb(56, 35, 155);
/* oklch */ color: oklch(37.3% 0.181 281.0);
Tailwind
colors: {
  custom: {
    50: '#7c61ba',
    500: '#38239b',
    950: '#000000',
  },
}
SCSS
$custom: #38239b;
$custom-light: #7c61ba;
$custom-dark: #000000;
JSON
{
  "hex": "#38239b",
  "rgb": {
    "r": 56,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 250.5,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37267,
    "c": 0.18085,
    "h": 281
  },
  "luminance": 0.04409
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #38239B

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

Preview Lab → · Contrast checker → · Palette generator →

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