#38186C#38186C

#38186C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.135 H 294.6°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#38186C
RGBrgb(56, 24, 108)
HSLhsl(263, 64%, 26%)
HSVhsv(263, 78%, 42%)
CMYKcmyk(48.1%, 77.8%, 0%, 57.6%)
CIE-LABlab(18.26, 35.37, -42.91)
CIE-LCHlch(18.26, 55.61, 309.50°)
OKLaboklab(31.12% 0.0562 -0.123)
OKLCHoklch(31.12% 0.135 294.6)
XYZxyz(4.6636, 2.5766, 14.4361)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38186C #4C6C18
analogous
#18226C #38186C #62186C
triadic
#38186C #6C3818 #186C38
tetradic
#38186C #6C1822 #4C6C18 #186C62
square
#38186C #6C1822 #4C6C18 #186C62
split-complementary
#38186C #6C6218 #226C18
monochromatic
#0D0619 #1E0D3A #38186C #52239E #6C2ED0

Accessibility & contrast

On white

13.86
#38186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#38186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38186C
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38186C#FFFFFF#000000##FFFFFF
##38186C1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#002B6A
Tritanopia (blue-blind)
#292E41
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #38186c;
/* rgb */ color: rgb(56, 24, 108);
/* oklch */ color: oklch(31.1% 0.135 294.6);
Tailwind
colors: {
  custom: {
    50: '#745897',
    500: '#38186c',
    950: '#000000',
  },
}
SCSS
$custom: #38186c;
$custom-light: #745897;
$custom-dark: #000000;
JSON
{
  "hex": "#38186c",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 262.857,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31121,
    "c": 0.13518,
    "h": 294.6
  },
  "luminance": 0.02577
}

Semantic roles & 50–950 ramp

primary
#38186C
secondary
#7CA23E
accent
#E741A8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #38186C

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

Preview Lab → · Contrast checker → · Palette generator →

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