#38228D#38228D

#38228D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.165 H 283.7°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#38228D
RGBrgb(56, 34, 141)
HSLhsl(252, 61%, 34%)
HSVhsv(252, 76%, 55%)
CMYKcmyk(60.3%, 75.9%, 0%, 44.7%)
CIE-LABlab(23.36, 40.01, -55.54)
CIE-LCHlch(23.36, 68.45, 305.77°)
OKLaboklab(35.7% 0.039 -0.16)
OKLCHoklch(35.7% 0.165 283.7)
XYZxyz(7.0092, 3.9074, 25.5790)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38228D #778D22
analogous
#22428D #38228D #6E228D
triadic
#38228D #8D3822 #228D38
tetradic
#38228D #8D2242 #778D22 #228D6E
square
#38228D #8D2242 #778D22 #228D6E
split-complementary
#38228D #8D6E22 #428D22
monochromatic
#110A2A #24165C #38228D #4C2EBE #6E54D6

Accessibility & contrast

On white

11.79
#38228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#38228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38228D
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38228D#FFFFFF#000000##FFFFFF
##38228D1.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)
#003B90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#034056
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #38228d;
/* rgb */ color: rgb(56, 34, 141);
/* oklch */ color: oklch(35.7% 0.165 283.7);
Tailwind
colors: {
  custom: {
    50: '#7960af',
    500: '#38228d',
    950: '#000000',
  },
}
SCSS
$custom: #38228d;
$custom-light: #7960af;
$custom-dark: #000000;
JSON
{
  "hex": "#38228d",
  "rgb": {
    "r": 56,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 252.336,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.357,
    "c": 0.16471,
    "h": 283.7
  },
  "luminance": 0.03908
}

Semantic roles & 50–950 ramp

primary
#38228D
secondary
#A4B951
accent
#E444C3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #38228D

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

Preview Lab → · Contrast checker → · Palette generator →

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