#38188D#38188D

#38188D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.174 H 285.2°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#38188D
RGBrgb(56, 24, 141)
HSLhsl(256, 71%, 32%)
HSVhsv(256, 83%, 55%)
CMYKcmyk(60.3%, 83%, 0%, 44.7%)
CIE-LABlab(21.64, 44.95, -58.38)
CIE-LCHlch(21.64, 73.68, 307.60°)
OKLaboklab(34.5% 0.0457 -0.1682)
OKLCHoklch(34.5% 0.174 285.2)
XYZxyz(6.7638, 3.4167, 25.4972)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38188D #6D8D18
analogous
#18338D #38188D #72188D
triadic
#38188D #8D3818 #188D38
tetradic
#38188D #8D1833 #6D8D18 #188D72
square
#38188D #8D1833 #6D8D18 #188D72
split-complementary
#38188D #8D7218 #338D18
monochromatic
#0E0624 #230F59 #38188D #4D21C1 #6C41DF

Accessibility & contrast

On white

12.47
#38188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#38188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38188D
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38188D#FFFFFF#000000##FFFFFF
##38188D1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#043C53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #38188d;
/* rgb */ color: rgb(56, 24, 141);
/* oklch */ color: oklch(34.5% 0.174 285.2);
Tailwind
colors: {
  custom: {
    50: '#7a5ab0',
    500: '#38188d',
    950: '#000000',
  },
}
SCSS
$custom: #38188d;
$custom-light: #7a5ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#38188d",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 256.41,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34498,
    "c": 0.17432,
    "h": 285.2
  },
  "luminance": 0.03417
}

Semantic roles & 50–950 ramp

primary
#38188D
secondary
#9DBF42
accent
#EE3ABD
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #38188D

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

Preview Lab → · Contrast checker → · Palette generator →

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