#38238B#38238B

#38238B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.161 H 283.9°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#38238B
RGBrgb(56, 35, 139)
HSLhsl(252, 60%, 34%)
HSVhsv(252, 75%, 55%)
CMYKcmyk(59.7%, 74.8%, 0%, 45.5%)
CIE-LABlab(23.36, 38.83, -54.30)
CIE-LCHlch(23.36, 66.76, 305.57°)
OKLaboklab(35.64% 0.0387 -0.1564)
OKLCHoklch(35.64% 0.161 283.9)
XYZxyz(6.8907, 3.9065, 24.8120)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38238B #768B23
analogous
#23428B #38238B #6C238B
triadic
#38238B #8B3823 #238B38
tetradic
#38238B #8B2342 #768B23 #238B6C
square
#38238B #8B2342 #768B23 #238B6C
split-complementary
#38238B #8B6C23 #428B23
monochromatic
#110A29 #24175A #38238B #4C2FBC #6E54D4

Accessibility & contrast

On white

11.79
#38238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#38238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38238B
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38238B#FFFFFF#000000##FFFFFF
##38238B1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#074055
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #38238b;
/* rgb */ color: rgb(56, 35, 139);
/* oklch */ color: oklch(35.6% 0.161 283.9);
Tailwind
colors: {
  custom: {
    50: '#7960ae',
    500: '#38238b',
    950: '#000000',
  },
}
SCSS
$custom: #38238b;
$custom-light: #7960ae;
$custom-dark: #000000;
JSON
{
  "hex": "#38238b",
  "rgb": {
    "r": 56,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 252.115,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35638,
    "c": 0.16112,
    "h": 283.9
  },
  "luminance": 0.03907
}

Semantic roles & 50–950 ramp

primary
#38238B
secondary
#A3B852
accent
#E345C3
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #38238B

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

Preview Lab → · Contrast checker → · Palette generator →

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