#381158#381158

#381158 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.120 H 304.7°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#381158
RGBrgb(56, 17, 88)
HSLhsl(273, 68%, 21%)
HSVhsv(273, 81%, 35%)
CMYKcmyk(36.4%, 80.7%, 0%, 65.5%)
CIE-LABlab(15.20, 33.30, -34.65)
CIE-LCHlch(15.20, 48.06, 313.87°)
OKLaboklab(28.4% 0.0683 -0.0986)
OKLCHoklch(28.4% 0.12 304.7)
XYZxyz(3.5924, 1.9462, 9.4170)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381158 #315811
analogous
#151158 #381158 #581154
triadic
#381158 #583811 #115838
tetradic
#381158 #581511 #315811 #115458
square
#381158 #581511 #315811 #115458
split-complementary
#381158 #545811 #115815
monochromatic
#10051A #170725 #381158 #591B8B #7925BF

Accessibility & contrast

On white

15.12
#381158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#381158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381158
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381158#FFFFFF#000000##FFFFFF
##3811581.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002657
Tritanopia (blue-blind)
#322334
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #381158;
/* rgb */ color: rgb(56, 17, 88);
/* oklch */ color: oklch(28.4% 0.120 304.7);
Tailwind
colors: {
  custom: {
    50: '#725488',
    500: '#381158',
    950: '#000000',
  },
}
SCSS
$custom: #381158;
$custom-light: #725488;
$custom-dark: #000000;
JSON
{
  "hex": "#381158",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 272.958,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28396,
    "c": 0.12,
    "h": 304.7
  },
  "luminance": 0.01946
}

Semantic roles & 50–950 ramp

primary
#381158
secondary
#5E9134
accent
#EA3D8B
background
#F7F4F8
surface
#EDE8F0
border
#C8C4CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381158

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

Preview Lab → · Contrast checker → · Palette generator →

#381158 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva