#38229B#38229B

#38229B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.182 H 281.2°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#38229B
RGBrgb(56, 34, 155)
HSLhsl(251, 64%, 37%)
HSVhsv(251, 78%, 61%)
CMYKcmyk(63.9%, 78.1%, 0%, 39.2%)
CIE-LABlab(24.80, 44.33, -61.82)
CIE-LCHlch(24.80, 76.07, 305.65°)
OKLaboklab(37.14% 0.0353 -0.1784)
OKLCHoklch(37.14% 0.182 281.2)
XYZxyz(8.1174, 4.3508, 31.4160)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38229B #859B22
analogous
#22499B #38229B #75229B
triadic
#38229B #9B3822 #229B38
tetradic
#38229B #9B2249 #859B22 #229B75
square
#38229B #9B2249 #859B22 #229B75
split-complementary
#38229B #9B7522 #499B22
monochromatic
#140C37 #261769 #38229B #4A2DCD #735CDB

Accessibility & contrast

On white

11.23
#38229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#38229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38229B
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38229B#FFFFFF#000000##FFFFFF
##38229B1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9E
Deuteranopia (green-blind)
#003699
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #38229b;
/* rgb */ color: rgb(56, 34, 155);
/* oklch */ color: oklch(37.1% 0.182 281.2);
Tailwind
colors: {
  custom: {
    50: '#7c61ba',
    500: '#38229b',
    950: '#000000',
  },
}
SCSS
$custom: #38229b;
$custom-light: #7c61ba;
$custom-dark: #000000;
JSON
{
  "hex": "#38229b",
  "rgb": {
    "r": 56,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 250.909,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37141,
    "c": 0.18181,
    "h": 281.2
  },
  "luminance": 0.04351
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #38229B

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

Preview Lab → · Contrast checker → · Palette generator →

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