#38229C#38229C

#38229C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.183 H 281.0°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#38229C
RGBrgb(56, 34, 156)
HSLhsl(251, 64%, 37%)
HSVhsv(251, 78%, 61%)
CMYKcmyk(64.1%, 78.2%, 0%, 38.8%)
CIE-LABlab(24.90, 44.64, -62.25)
CIE-LCHlch(24.90, 76.60, 305.64°)
OKLaboklab(37.25% 0.035 -0.1796)
OKLCHoklch(37.25% 0.183 281)
XYZxyz(8.2018, 4.3845, 31.8601)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38229C #869C22
analogous
#22499C #38229C #75229C
triadic
#38229C #9C3822 #229C38
tetradic
#38229C #9C2249 #869C22 #229C75
square
#38229C #9C2249 #869C22 #229C75
split-complementary
#38229C #9C7522 #499C22
monochromatic
#140C38 #26176A #38229C #4A2DCE #745DDC

Accessibility & contrast

On white

11.19
#38229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#38229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38229C
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38229C#FFFFFF#000000##FFFFFF
##38229C1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9F
Deuteranopia (green-blind)
#00379A
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #38229c;
/* rgb */ color: rgb(56, 34, 156);
/* oklch */ color: oklch(37.2% 0.183 281.0);
Tailwind
colors: {
  custom: {
    50: '#7c61ba',
    500: '#38229c',
    950: '#000000',
  },
}
SCSS
$custom: #38229c;
$custom-light: #7c61ba;
$custom-dark: #000000;
JSON
{
  "hex": "#38229c",
  "rgb": {
    "r": 56,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 250.82,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37246,
    "c": 0.18302,
    "h": 281
  },
  "luminance": 0.04385
}

Semantic roles & 50–950 ramp

primary
#38229C
secondary
#AEC05A
accent
#E741C9
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #38229C

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

Preview Lab → · Contrast checker → · Palette generator →

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