#38187D#38187D

#38187D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.156 H 289.2°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#38187D
RGBrgb(56, 24, 125)
HSLhsl(259, 68%, 29%)
HSVhsv(259, 81%, 49%)
CMYKcmyk(55.2%, 80.8%, 0%, 51%)
CIE-LABlab(19.94, 40.31, -51.10)
CIE-LCHlch(19.94, 65.09, 308.27°)
OKLaboklab(32.81% 0.0512 -0.147)
OKLCHoklch(32.81% 0.156 289.2)
XYZxyz(5.6581, 2.9744, 19.6740)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38187D #5D7D18
analogous
#182B7D #38187D #6B187D
triadic
#38187D #7D3818 #187D38
tetradic
#38187D #7D182B #5D7D18 #187D6B
square
#38187D #7D182B #5D7D18 #187D6B
split-complementary
#38187D #7D6B18 #2B7D18
monochromatic
#0C051A #210E4A #38187D #4F22B0 #6A37D9

Accessibility & contrast

On white

13.17
#38187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#38187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38187D
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38187D#FFFFFF#000000##FFFFFF
##38187D1.0013.171.6013.17
#FFFFFF13.171.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#1D354A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #38187d;
/* rgb */ color: rgb(56, 24, 125);
/* oklch */ color: oklch(32.8% 0.156 289.2);
Tailwind
colors: {
  custom: {
    50: '#7759a4',
    500: '#38187d',
    950: '#000000',
  },
}
SCSS
$custom: #38187d;
$custom-light: #7759a4;
$custom-dark: #000000;
JSON
{
  "hex": "#38187d",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 259.01,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3281,
    "c": 0.15561,
    "h": 289.2
  },
  "luminance": 0.02975
}

Semantic roles & 50–950 ramp

primary
#38187D
secondary
#8DB23F
accent
#EB3DB4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #38187D

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

Preview Lab → · Contrast checker → · Palette generator →

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