#38185A#38185A

#38185A is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.5% C 0.113 H 302.1°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#38185A
RGBrgb(56, 24, 90)
HSLhsl(269, 58%, 22%)
HSVhsv(269, 73%, 35%)
CMYKcmyk(37.8%, 73.3%, 0%, 64.7%)
CIE-LABlab(16.66, 30.22, -33.62)
CIE-LCHlch(16.66, 45.21, 311.95°)
OKLaboklab(29.49% 0.06 -0.0957)
OKLCHoklch(29.49% 0.113 302.1)
XYZxyz(3.8025, 2.2322, 9.9014)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38185A #3A5A18
analogous
#18195A #38185A #59185A
triadic
#38185A #5A3818 #185A38
tetradic
#38185A #5A1819 #3A5A18 #185A59
square
#38185A #5A1819 #3A5A18 #185A59
split-complementary
#38185A #5A5918 #195A18
monochromatic
#0F0618 #1A0B2A #38185A #56258A #7432BB

Accessibility & contrast

On white

14.52
#38185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38185A
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38185A#FFFFFF#000000##FFFFFF
##38185A1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295C
Deuteranopia (green-blind)
#002959
Tritanopia (blue-blind)
#312737
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #38185a;
/* rgb */ color: rgb(56, 24, 90);
/* oklch */ color: oklch(29.5% 0.113 302.1);
Tailwind
colors: {
  custom: {
    50: '#725789',
    500: '#38185a',
    950: '#000000',
  },
}
SCSS
$custom: #38185a;
$custom-light: #725789;
$custom-dark: #000000;
JSON
{
  "hex": "#38185a",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 269.091,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29486,
    "c": 0.11293,
    "h": 302.1
  },
  "luminance": 0.02232
}

Semantic roles & 50–950 ramp

primary
#38185A
secondary
#68913D
accent
#E14796
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #38185A

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

Preview Lab → · Contrast checker → · Palette generator →

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