#38229F#38229F

#38229F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.187 H 280.5°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#38229F
RGBrgb(56, 34, 159)
HSLhsl(251, 65%, 38%)
HSVhsv(251, 79%, 62%)
CMYKcmyk(64.8%, 78.6%, 0%, 37.6%)
CIE-LABlab(25.22, 45.56, -63.56)
CIE-LCHlch(25.22, 78.20, 305.63°)
OKLaboklab(37.56% 0.0342 -0.1834)
OKLCHoklch(37.56% 0.187 280.5)
XYZxyz(8.4589, 4.4874, 33.2145)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38229F #899F22
analogous
#224A9F #38229F #76229F
triadic
#38229F #9F3822 #229F38
tetradic
#38229F #9F224A #899F22 #229F76
square
#38229F #9F224A #899F22 #229F76
split-complementary
#38229F #9F7622 #4A9F22
monochromatic
#140C3A #26176D #38229F #4A2DD1 #755FDD

Accessibility & contrast

On white

11.07
#38229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#38229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38229F
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38229F#FFFFFF#000000##FFFFFF
##38229F1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00379D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #38229f;
/* rgb */ color: rgb(56, 34, 159);
/* oklch */ color: oklch(37.6% 0.187 280.5);
Tailwind
colors: {
  custom: {
    50: '#7d61bd',
    500: '#38229f',
    950: '#000000',
  },
}
SCSS
$custom: #38229f;
$custom-light: #7d61bd;
$custom-dark: #000000;
JSON
{
  "hex": "#38229f",
  "rgb": {
    "r": 56,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 250.56,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37562,
    "c": 0.1866,
    "h": 280.5
  },
  "luminance": 0.04488
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #38229F

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

Preview Lab → · Contrast checker → · Palette generator →

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