#38218B#38218B

#38218B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.163 H 284.3°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#38218B
RGBrgb(56, 33, 139)
HSLhsl(253, 62%, 34%)
HSVhsv(253, 76%, 55%)
CMYKcmyk(59.7%, 76.3%, 0%, 45.5%)
CIE-LABlab(22.97, 39.93, -54.94)
CIE-LCHlch(22.97, 67.91, 306.01°)
OKLaboklab(35.36% 0.0402 -0.1583)
OKLCHoklch(35.36% 0.163 284.3)
XYZxyz(6.8335, 3.7921, 24.7930)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38218B #748B21
analogous
#213F8B #38218B #6D218B
triadic
#38218B #8B3821 #218B38
tetradic
#38218B #8B213F #748B21 #218B6D
square
#38218B #8B213F #748B21 #218B6D
split-complementary
#38218B #8B6D21 #3F8B21
monochromatic
#100A28 #24155A #38218B #4C2DBC #6E51D6

Accessibility & contrast

On white

11.94
#38218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#38218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38218B
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38218B#FFFFFF#000000##FFFFFF
##38218B1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#083F54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #38218b;
/* rgb */ color: rgb(56, 33, 139);
/* oklch */ color: oklch(35.4% 0.163 284.3);
Tailwind
colors: {
  custom: {
    50: '#795fae',
    500: '#38218b',
    950: '#000000',
  },
}
SCSS
$custom: #38218b;
$custom-light: #795fae;
$custom-dark: #000000;
JSON
{
  "hex": "#38218b",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 253.019,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35364,
    "c": 0.1633,
    "h": 284.3
  },
  "luminance": 0.03793
}

Semantic roles & 50–950 ramp

primary
#38218B
secondary
#A2B94F
accent
#E543C2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #38218B

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

Preview Lab → · Contrast checker → · Palette generator →

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