#38229A#38229A

#38229A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.181 H 281.4°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#38229A
RGBrgb(56, 34, 154)
HSLhsl(251, 64%, 37%)
HSVhsv(251, 78%, 60%)
CMYKcmyk(63.6%, 77.9%, 0%, 39.6%)
CIE-LABlab(24.69, 44.03, -61.38)
CIE-LCHlch(24.69, 75.53, 305.65°)
OKLaboklab(37.04% 0.0356 -0.1771)
OKLCHoklch(37.04% 0.181 281.4)
XYZxyz(8.0338, 4.3173, 30.9756)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38229A #849A22
analogous
#22489A #38229A #74229A
triadic
#38229A #9A3822 #229A38
tetradic
#38229A #9A2248 #849A22 #229A74
square
#38229A #9A2248 #849A22 #229A74
split-complementary
#38229A #9A7422 #489A22
monochromatic
#140C36 #261768 #38229A #4A2DCC #735BDB

Accessibility & contrast

On white

11.27
#38229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#38229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38229A
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38229A#FFFFFF#000000##FFFFFF
##38229A1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9D
Deuteranopia (green-blind)
#003698
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #38229a;
/* rgb */ color: rgb(56, 34, 154);
/* oklch */ color: oklch(37.0% 0.181 281.4);
Tailwind
colors: {
  custom: {
    50: '#7c61b9',
    500: '#38229a',
    950: '#000000',
  },
}
SCSS
$custom: #38229a;
$custom-light: #7c61b9;
$custom-dark: #000000;
JSON
{
  "hex": "#38229a",
  "rgb": {
    "r": 56,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 251,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37036,
    "c": 0.18061,
    "h": 281.4
  },
  "luminance": 0.04318
}

Semantic roles & 50–950 ramp

primary
#38229A
secondary
#ACBF58
accent
#E741C8
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #38229A

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

Preview Lab → · Contrast checker → · Palette generator →

#38229A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva