#38228C#38228C

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

Color values

HEX#38228C
RGBrgb(56, 34, 140)
HSLhsl(252, 61%, 34%)
HSVhsv(252, 76%, 55%)
CMYKcmyk(60%, 75.7%, 0%, 45.1%)
CIE-LABlab(23.26, 39.70, -55.08)
CIE-LCHlch(23.26, 67.89, 305.78°)
OKLaboklab(35.6% 0.0392 -0.1587)
OKLCHoklch(35.6% 0.163 283.9)
XYZxyz(6.9351, 3.8778, 25.1889)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38228C #768C22
analogous
#22418C #38228C #6D228C
triadic
#38228C #8C3822 #228C38
tetradic
#38228C #8C2241 #768C22 #228C6D
square
#38228C #8C2241 #768C22 #228C6D
split-complementary
#38228C #8C6D22 #418C22
monochromatic
#110A2A #24165B #38228C #4C2EBD #6E53D5

Accessibility & contrast

On white

11.83
#38228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38228C
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38228C#FFFFFF#000000##FFFFFF
##38228C1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00348A
Tritanopia (blue-blind)
#054055
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #38228c;
/* rgb */ color: rgb(56, 34, 140);
/* oklch */ color: oklch(35.6% 0.163 283.9);
Tailwind
colors: {
  custom: {
    50: '#7960af',
    500: '#38228c',
    950: '#000000',
  },
}
SCSS
$custom: #38228c;
$custom-light: #7960af;
$custom-dark: #000000;
JSON
{
  "hex": "#38228c",
  "rgb": {
    "r": 56,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 252.453,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.356,
    "c": 0.16346,
    "h": 283.9
  },
  "luminance": 0.03878
}

Semantic roles & 50–950 ramp

primary
#38228C
secondary
#A3B951
accent
#E444C3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #38228C

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

Preview Lab → · Contrast checker → · Palette generator →

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