#38229E#38229E

#38229E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.185 H 280.7°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#38229E
RGBrgb(56, 34, 158)
HSLhsl(251, 65%, 38%)
HSVhsv(251, 78%, 62%)
CMYKcmyk(64.6%, 78.5%, 0%, 38%)
CIE-LABlab(25.12, 45.25, -63.13)
CIE-LCHlch(25.12, 77.67, 305.63°)
OKLaboklab(37.46% 0.0344 -0.1822)
OKLCHoklch(37.46% 0.185 280.7)
XYZxyz(8.3725, 4.4528, 32.7594)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38229E #889E22
analogous
#224A9E #38229E #76229E
triadic
#38229E #9E3822 #229E38
tetradic
#38229E #9E224A #889E22 #229E76
square
#38229E #9E224A #889E22 #229E76
split-complementary
#38229E #9E7622 #4A9E22
monochromatic
#140C39 #26176C #38229E #4A2DD0 #745EDC

Accessibility & contrast

On white

11.11
#38229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#38229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38229E
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38229E#FFFFFF#000000##FFFFFF
##38229E1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00379C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #38229e;
/* rgb */ color: rgb(56, 34, 158);
/* oklch */ color: oklch(37.5% 0.185 280.7);
Tailwind
colors: {
  custom: {
    50: '#7d61bc',
    500: '#38229e',
    950: '#000000',
  },
}
SCSS
$custom: #38229e;
$custom-light: #7d61bc;
$custom-dark: #000000;
JSON
{
  "hex": "#38229e",
  "rgb": {
    "r": 56,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 250.645,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37456,
    "c": 0.18542,
    "h": 280.7
  },
  "luminance": 0.04453
}

Semantic roles & 50–950 ramp

primary
#38229E
secondary
#AFC15B
accent
#E840CA
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #38229E

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

Preview Lab → · Contrast checker → · Palette generator →

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