#38186F#38186F

#38186F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.139 H 293.5°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#38186F
RGBrgb(56, 24, 111)
HSLhsl(262, 64%, 26%)
HSVhsv(262, 78%, 44%)
CMYKcmyk(49.5%, 78.4%, 0%, 56.5%)
CIE-LABlab(18.55, 36.24, -44.39)
CIE-LCHlch(18.55, 57.31, 309.22°)
OKLaboklab(31.41% 0.0554 -0.1273)
OKLCHoklch(31.41% 0.139 293.5)
XYZxyz(4.8260, 2.6416, 15.2914)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38186F #4F6F18
analogous
#18246F #38186F #64186F
triadic
#38186F #6F3818 #186F38
tetradic
#38186F #6F1824 #4F6F18 #186F64
square
#38186F #6F1824 #4F6F18 #186F64
split-complementary
#38186F #6F6418 #246F18
monochromatic
#0D0519 #1F0D3D #38186F #5123A1 #6B2FD2

Accessibility & contrast

On white

13.74
#38186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#38186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38186F
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38186F#FFFFFF#000000##FFFFFF
##38186F1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#272F42
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #38186f;
/* rgb */ color: rgb(56, 24, 111);
/* oklch */ color: oklch(31.4% 0.139 293.5);
Tailwind
colors: {
  custom: {
    50: '#755999',
    500: '#38186f',
    950: '#000000',
  },
}
SCSS
$custom: #38186f;
$custom-light: #755999;
$custom-dark: #000000;
JSON
{
  "hex": "#38186f",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 262.069,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3141,
    "c": 0.13883,
    "h": 293.5
  },
  "luminance": 0.02642
}

Semantic roles & 50–950 ramp

primary
#38186F
secondary
#7FA53E
accent
#E740AA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #38186F

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

Preview Lab → · Contrast checker → · Palette generator →

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