#38186B#38186B

#38186B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.134 H 294.9°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#38186B
RGBrgb(56, 24, 107)
HSLhsl(263, 63%, 26%)
HSVhsv(263, 78%, 42%)
CMYKcmyk(47.7%, 77.6%, 0%, 58%)
CIE-LABlab(18.17, 35.08, -42.41)
CIE-LCHlch(18.17, 55.04, 309.59°)
OKLaboklab(31.03% 0.0564 -0.1215)
OKLCHoklch(31.03% 0.134 294.9)
XYZxyz(4.6106, 2.5554, 14.1574)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38186B #4B6B18
analogous
#18216B #38186B #61186B
triadic
#38186B #6B3818 #186B38
tetradic
#38186B #6B1821 #4B6B18 #186B61
square
#38186B #6B1821 #4B6B18 #186B61
split-complementary
#38186B #6B6118 #216B18
monochromatic
#0D0619 #1E0D39 #38186B #52239D #6C2ECF

Accessibility & contrast

On white

13.90
#38186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#38186B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38186B
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38186B#FFFFFF#000000##FFFFFF
##38186B1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6D
Deuteranopia (green-blind)
#002B69
Tritanopia (blue-blind)
#2A2E40
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #38186b;
/* rgb */ color: rgb(56, 24, 107);
/* oklch */ color: oklch(31.0% 0.134 294.9);
Tailwind
colors: {
  custom: {
    50: '#745896',
    500: '#38186b',
    950: '#000000',
  },
}
SCSS
$custom: #38186b;
$custom-light: #745896;
$custom-dark: #000000;
JSON
{
  "hex": "#38186b",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 263.133,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31025,
    "c": 0.13396,
    "h": 294.9
  },
  "luminance": 0.02556
}

Semantic roles & 50–950 ramp

primary
#38186B
secondary
#7BA13E
accent
#E641A7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #38186B

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

Preview Lab → · Contrast checker → · Palette generator →

#38186B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva