#38148A#38148A

#38148A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.174 H 286.4°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#38148A
RGBrgb(56, 20, 138)
HSLhsl(258, 75%, 31%)
HSVhsv(258, 86%, 54%)
CMYKcmyk(59.4%, 85.5%, 0%, 45.9%)
CIE-LABlab(20.73, 45.79, -58.00)
CIE-LCHlch(20.73, 73.89, 308.29°)
OKLaboklab(33.78% 0.0491 -0.1671)
OKLCHoklch(33.78% 0.174 286.4)
XYZxyz(6.4671, 3.1757, 24.3120)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38148A #668A14
analogous
#142B8A #38148A #73148A
triadic
#38148A #8A3814 #148A38
tetradic
#38148A #8A142B #668A14 #148A73
square
#38148A #8A142B #668A14 #148A73
split-complementary
#38148A #8A7314 #2B8A14
monochromatic
#0D051F #220C55 #38148A #4E1CBF #6B36E2

Accessibility & contrast

On white

12.84
#38148A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#38148A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38148A
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38148A#FFFFFF#000000##FFFFFF
##38148A1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#0C3951
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #38148a;
/* rgb */ color: rgb(56, 20, 138);
/* oklch */ color: oklch(33.8% 0.174 286.4);
Tailwind
colors: {
  custom: {
    50: '#7a58ad',
    500: '#38148a',
    950: '#000000',
  },
}
SCSS
$custom: #38148a;
$custom-light: #7a58ad;
$custom-dark: #000000;
JSON
{
  "hex": "#38148a",
  "rgb": {
    "r": 56,
    "g": 20,
    "b": 138
  },
  "hsl": {
    "h": 258.305,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33775,
    "c": 0.17413,
    "h": 286.4
  },
  "luminance": 0.03176
}

Semantic roles & 50–950 ramp

primary
#38148A
secondary
#96BE3C
accent
#F136B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #38148A

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

Preview Lab → · Contrast checker → · Palette generator →

#38148A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva