#38236E#38236E

#38236E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 32.9% C 0.123 H 290.9°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#38236E
RGBrgb(56, 35, 110)
HSLhsl(257, 52%, 28%)
HSVhsv(257, 68%, 43%)
CMYKcmyk(49.1%, 68.2%, 0%, 56.9%)
CIE-LABlab(20.71, 29.70, -40.22)
CIE-LCHlch(20.71, 50.00, 306.44°)
OKLaboklab(32.92% 0.0441 -0.1151)
OKLCHoklch(32.92% 0.123 290.9)
XYZxyz(5.0456, 3.1684, 15.0945)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38236E #596E23
analogous
#23336E #38236E #5D236E
triadic
#38236E #6E3823 #236E38
tetradic
#38236E #6E2333 #596E23 #236E5D
square
#38236E #6E2333 #596E23 #236E5D
split-complementary
#38236E #6E5D23 #336E23
monochromatic
#0C0717 #201440 #38236E #50329C #6A47C4

Accessibility & contrast

On white

12.85
#38236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#38236E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38236E
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38236E#FFFFFF#000000##FFFFFF
##38236E1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#00306C
Tritanopia (blue-blind)
#273545
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #38236e;
/* rgb */ color: rgb(56, 35, 110);
/* oklch */ color: oklch(32.9% 0.123 290.9);
Tailwind
colors: {
  custom: {
    50: '#745f98',
    500: '#38236e',
    950: '#000000',
  },
}
SCSS
$custom: #38236e;
$custom-light: #745f98;
$custom-dark: #000000;
JSON
{
  "hex": "#38236e",
  "rgb": {
    "r": 56,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 256.8,
    "s": 51.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32922,
    "c": 0.12326,
    "h": 290.9
  },
  "luminance": 0.03169
}

Semantic roles & 50–950 ramp

primary
#38236E
secondary
#89A14C
accent
#DB4DB3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #38236E

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

Preview Lab → · Contrast checker → · Palette generator →

#38236E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva