#38218D#38218D

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

Color values

HEX#38218D
RGBrgb(56, 33, 141)
HSLhsl(253, 62%, 34%)
HSVhsv(253, 77%, 55%)
CMYKcmyk(60.3%, 76.6%, 0%, 44.7%)
CIE-LABlab(23.17, 40.54, -55.85)
CIE-LCHlch(23.17, 69.02, 305.98°)
OKLaboklab(35.57% 0.0397 -0.1609)
OKLCHoklch(35.57% 0.166 283.9)
XYZxyz(6.9810, 3.8511, 25.5696)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38218D #768D21
analogous
#21408D #38218D #6E218D
triadic
#38218D #8D3821 #218D38
tetradic
#38218D #8D2140 #768D21 #218D6E
square
#38218D #8D2140 #768D21 #218D6E
split-complementary
#38218D #8D6E21 #408D21
monochromatic
#110A2A #24155B #38218D #4C2DBF #6E52D6

Accessibility & contrast

On white

11.86
#38218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#38218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38218D
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38218D#FFFFFF#000000##FFFFFF
##38218D1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#033F55
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #38218d;
/* rgb */ color: rgb(56, 33, 141);
/* oklch */ color: oklch(35.6% 0.166 283.9);
Tailwind
colors: {
  custom: {
    50: '#795faf',
    500: '#38218d',
    950: '#000000',
  },
}
SCSS
$custom: #38218d;
$custom-light: #795faf;
$custom-dark: #000000;
JSON
{
  "hex": "#38218d",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 252.778,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35566,
    "c": 0.16577,
    "h": 283.9
  },
  "luminance": 0.03852
}

Semantic roles & 50–950 ramp

primary
#38218D
secondary
#A3BA50
accent
#E543C3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #38218D

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

Preview Lab → · Contrast checker → · Palette generator →

#38218D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva