#38187E#38187E

#38187E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.157 H 288.9°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#38187E
RGBrgb(56, 24, 126)
HSLhsl(259, 68%, 29%)
HSVhsv(259, 81%, 49%)
CMYKcmyk(55.6%, 81%, 0%, 50.6%)
CIE-LABlab(20.04, 40.60, -51.57)
CIE-LCHlch(20.04, 65.63, 308.22°)
OKLaboklab(32.91% 0.0508 -0.1483)
OKLCHoklch(32.91% 0.157 288.9)
XYZxyz(5.7223, 3.0001, 20.0122)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38187E #5E7E18
analogous
#182B7E #38187E #6B187E
triadic
#38187E #7E3818 #187E38
tetradic
#38187E #7E182B #5E7E18 #187E6B
square
#38187E #7E182B #5E7E18 #187E6B
split-complementary
#38187E #7E6B18 #2B7E18
monochromatic
#0B051A #210E4B #38187E #4F22B1 #6A37D9

Accessibility & contrast

On white

13.13
#38187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38187E
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38187E#FFFFFF#000000##FFFFFF
##38187E1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#1C354B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #38187e;
/* rgb */ color: rgb(56, 24, 126);
/* oklch */ color: oklch(32.9% 0.157 288.9);
Tailwind
colors: {
  custom: {
    50: '#7759a4',
    500: '#38187e',
    950: '#000000',
  },
}
SCSS
$custom: #38187e;
$custom-light: #7759a4;
$custom-dark: #000000;
JSON
{
  "hex": "#38187e",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 258.824,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32913,
    "c": 0.15679,
    "h": 288.9
  },
  "luminance": 0.03
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #38187E

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

Preview Lab → · Contrast checker → · Palette generator →

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