#38155B#38155B

#38155B is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.2% C 0.118 H 302.3°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#38155B
RGBrgb(56, 21, 91)
HSLhsl(270, 63%, 22%)
HSVhsv(270, 77%, 36%)
CMYKcmyk(38.5%, 76.9%, 0%, 64.3%)
CIE-LABlab(16.17, 32.12, -35.10)
CIE-LCHlch(16.17, 47.58, 312.46°)
OKLaboklab(29.16% 0.0633 -0.1)
OKLCHoklch(29.16% 0.118 302.3)
XYZxyz(3.7869, 2.1324, 10.1076)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38155B #385B15
analogous
#15155B #38155B #5B155B
triadic
#38155B #5B3815 #155B38
tetradic
#38155B #5B1515 #385B15 #155B5B
square
#38155B #5B1515 #385B15 #155B5B
split-complementary
#38155B #5B5B15 #155B15
monochromatic
#0F0619 #190A29 #38155B #57208D #752CBE

Accessibility & contrast

On white

14.72
#38155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#38155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38155B
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38155B#FFFFFF#000000##FFFFFF
##38155B1.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#00285A
Tritanopia (blue-blind)
#312636
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #38155b;
/* rgb */ color: rgb(56, 21, 91);
/* oklch */ color: oklch(29.2% 0.118 302.3);
Tailwind
colors: {
  custom: {
    50: '#72568a',
    500: '#38155b',
    950: '#000000',
  },
}
SCSS
$custom: #38155b;
$custom-light: #72568a;
$custom-dark: #000000;
JSON
{
  "hex": "#38155b",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 270,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29161,
    "c": 0.11836,
    "h": 302.3
  },
  "luminance": 0.02132
}

Semantic roles & 50–950 ramp

primary
#38155B
secondary
#669239
accent
#E64294
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38155B

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

Preview Lab → · Contrast checker → · Palette generator →

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