#38185B#38185B

#38185B is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.6% C 0.114 H 301.6°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#38185B
RGBrgb(56, 24, 91)
HSLhsl(269, 58%, 23%)
HSVhsv(269, 74%, 36%)
CMYKcmyk(38.5%, 73.6%, 0%, 64.3%)
CIE-LABlab(16.74, 30.51, -34.16)
CIE-LCHlch(16.74, 45.80, 311.77°)
OKLaboklab(29.57% 0.0598 -0.0972)
OKLCHoklch(29.57% 0.114 301.6)
XYZxyz(3.8454, 2.2493, 10.1271)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38185B #3B5B18
analogous
#18195B #38185B #5A185B
triadic
#38185B #5B3818 #185B38
tetradic
#38185B #5B1819 #3B5B18 #185B5A
square
#38185B #5B1819 #3B5B18 #185B5A
split-complementary
#38185B #5B5A18 #195B18
monochromatic
#0F0618 #1A0B2B #38185B #56258B #7432BC

Accessibility & contrast

On white

14.48
#38185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38185B
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38185B#FFFFFF#000000##FFFFFF
##38185B1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#00295A
Tritanopia (blue-blind)
#312837
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #38185b;
/* rgb */ color: rgb(56, 24, 91);
/* oklch */ color: oklch(29.6% 0.114 301.6);
Tailwind
colors: {
  custom: {
    50: '#72588a',
    500: '#38185b',
    950: '#000000',
  },
}
SCSS
$custom: #38185b;
$custom-light: #72588a;
$custom-dark: #000000;
JSON
{
  "hex": "#38185b",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 268.657,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29572,
    "c": 0.11418,
    "h": 301.6
  },
  "luminance": 0.02249
}

Semantic roles & 50–950 ramp

primary
#38185B
secondary
#69923D
accent
#E14697
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38185B

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

Preview Lab → · Contrast checker → · Palette generator →

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