#38187F#38187F

#38187F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.158 H 288.6°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#38187F
RGBrgb(56, 24, 127)
HSLhsl(259, 68%, 30%)
HSVhsv(259, 81%, 50%)
CMYKcmyk(55.9%, 81.1%, 0%, 50.2%)
CIE-LABlab(20.15, 40.89, -52.03)
CIE-LCHlch(20.15, 66.18, 308.17°)
OKLaboklab(33.02% 0.0505 -0.1497)
OKLCHoklch(33.02% 0.158 288.6)
XYZxyz(5.7872, 3.0260, 20.3537)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38187F #5F7F18
analogous
#182B7F #38187F #6C187F
triadic
#38187F #7F3818 #187F38
tetradic
#38187F #7F182B #5F7F18 #187F6C
square
#38187F #7F182B #5F7F18 #187F6C
split-complementary
#38187F #7F6C18 #2B7F18
monochromatic
#0B051A #210E4C #38187F #4F22B2 #6A38D9

Accessibility & contrast

On white

13.08
#38187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#38187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38187F
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38187F#FFFFFF#000000##FFFFFF
##38187F1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#1B364B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #38187f;
/* rgb */ color: rgb(56, 24, 127);
/* oklch */ color: oklch(33.0% 0.158 288.6);
Tailwind
colors: {
  custom: {
    50: '#7859a5',
    500: '#38187f',
    950: '#000000',
  },
}
SCSS
$custom: #38187f;
$custom-light: #7859a5;
$custom-dark: #000000;
JSON
{
  "hex": "#38187f",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 258.641,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33016,
    "c": 0.15797,
    "h": 288.6
  },
  "luminance": 0.03026
}

Semantic roles & 50–950 ramp

primary
#38187F
secondary
#8FB33F
accent
#EB3DB5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #38187F

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

Preview Lab → · Contrast checker → · Palette generator →

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