#38154D#38154D

#38154D is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.101 H 310.2°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#38154D
RGBrgb(56, 21, 77)
HSLhsl(278, 57%, 19%)
HSVhsv(278, 73%, 30%)
CMYKcmyk(27.3%, 72.7%, 0%, 69.8%)
CIE-LABlab(15.02, 28.37, -27.46)
CIE-LCHlch(15.02, 39.48, 315.94°)
OKLaboklab(27.98% 0.0654 -0.0775)
OKLCHoklch(27.98% 0.101 310.2)
XYZxyz(3.2383, 1.9130, 7.2184)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38154D #2A4D15
analogous
#1C154D #38154D #4D1546
triadic
#38154D #4D3815 #154D38
tetradic
#38154D #4D1C15 #2A4D15 #15464D
square
#38154D #4D1C15 #2A4D15 #15464D
split-complementary
#38154D #464D15 #154D1C
monochromatic
#110718 #15081D #38154D #5B227D #7E2FAD

Accessibility & contrast

On white

15.19
#38154D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#38154D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38154D
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38154D#FFFFFF#000000##FFFFFF
##38154D1.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244F
Deuteranopia (green-blind)
#0D264C
Tritanopia (blue-blind)
#35212F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #38154d;
/* rgb */ color: rgb(56, 21, 77);
/* oklch */ color: oklch(28.0% 0.101 310.2);
Tailwind
colors: {
  custom: {
    50: '#71557f',
    500: '#38154d',
    950: '#000000',
  },
}
SCSS
$custom: #38154d;
$custom-light: #71557f;
$custom-dark: #000000;
JSON
{
  "hex": "#38154d",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 77
  },
  "hsl": {
    "h": 277.5,
    "s": 57.143,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27982,
    "c": 0.10144,
    "h": 310.2
  },
  "luminance": 0.01913
}

Semantic roles & 50–950 ramp

primary
#38154D
secondary
#558539
accent
#E04781
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #38154D

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

Preview Lab → · Contrast checker → · Palette generator →

#38154D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva