#38238D#38238D

#38238D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.164 H 283.5°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#38238D
RGBrgb(56, 35, 141)
HSLhsl(252, 60%, 35%)
HSVhsv(252, 75%, 55%)
CMYKcmyk(60.3%, 75.2%, 0%, 44.7%)
CIE-LABlab(23.56, 39.46, -55.22)
CIE-LCHlch(23.56, 67.87, 305.55°)
OKLaboklab(35.84% 0.0382 -0.1591)
OKLCHoklch(35.84% 0.164 283.5)
XYZxyz(7.0382, 3.9654, 25.5887)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38238D #788D23
analogous
#23438D #38238D #6D238D
triadic
#38238D #8D3823 #238D38
tetradic
#38238D #8D2343 #788D23 #238D6D
square
#38238D #8D2343 #788D23 #238D6D
split-complementary
#38238D #8D6D23 #438D23
monochromatic
#110B2B #25175C #38238D #4B2FBE #6F55D5

Accessibility & contrast

On white

11.71
#38238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#38238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38238D
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38238D#FFFFFF#000000##FFFFFF
##38238D1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#024056
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #38238d;
/* rgb */ color: rgb(56, 35, 141);
/* oklch */ color: oklch(35.8% 0.164 283.5);
Tailwind
colors: {
  custom: {
    50: '#7960af',
    500: '#38238d',
    950: '#000000',
  },
}
SCSS
$custom: #38238d;
$custom-light: #7960af;
$custom-dark: #000000;
JSON
{
  "hex": "#38238d",
  "rgb": {
    "r": 56,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 251.887,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35837,
    "c": 0.16363,
    "h": 283.5
  },
  "luminance": 0.03966
}

Semantic roles & 50–950 ramp

primary
#38238D
secondary
#A5B953
accent
#E344C4
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #38238D

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

Preview Lab → · Contrast checker → · Palette generator →

#38238D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva