#38185C#38185C

#38185C is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.7% C 0.115 H 301.1°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#38185C
RGBrgb(56, 24, 92)
HSLhsl(268, 59%, 23%)
HSVhsv(268, 74%, 36%)
CMYKcmyk(39.1%, 73.9%, 0%, 63.9%)
CIE-LABlab(16.83, 30.79, -34.69)
CIE-LCHlch(16.83, 46.38, 311.59°)
OKLaboklab(29.66% 0.0597 -0.0988)
OKLCHoklch(29.66% 0.115 301.1)
XYZxyz(3.8888, 2.2667, 10.3558)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38185C #3C5C18
analogous
#181A5C #38185C #5A185C
triadic
#38185C #5C3818 #185C38
tetradic
#38185C #5C181A #3C5C18 #185C5A
square
#38185C #5C181A #3C5C18 #185C5A
split-complementary
#38185C #5C5A18 #1A5C18
monochromatic
#0F0618 #1A0B2B #38185C #56258D #7331BD

Accessibility & contrast

On white

14.45
#38185C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#38185C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38185C
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38185C#FFFFFF#000000##FFFFFF
##38185C1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295E
Deuteranopia (green-blind)
#00295B
Tritanopia (blue-blind)
#302838
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #38185c;
/* rgb */ color: rgb(56, 24, 92);
/* oklch */ color: oklch(29.7% 0.115 301.1);
Tailwind
colors: {
  custom: {
    50: '#72588b',
    500: '#38185c',
    950: '#000000',
  },
}
SCSS
$custom: #38185c;
$custom-light: #72588b;
$custom-dark: #000000;
JSON
{
  "hex": "#38185c",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 92
  },
  "hsl": {
    "h": 268.235,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29659,
    "c": 0.11543,
    "h": 301.1
  },
  "luminance": 0.02267
}

Semantic roles & 50–950 ramp

primary
#38185C
secondary
#6A933D
accent
#E24698
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38185C

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

Preview Lab → · Contrast checker → · Palette generator →

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