#380F5B#380F5B

#380F5B is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.126 H 303.6°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#380F5B
RGBrgb(56, 15, 91)
HSLhsl(272, 72%, 21%)
HSVhsv(272, 84%, 36%)
CMYKcmyk(38.5%, 83.5%, 0%, 64.3%)
CIE-LABlab(15.16, 35.00, -36.74)
CIE-LCHlch(15.16, 50.74, 313.61°)
OKLaboklab(28.45% 0.0695 -0.1048)
OKLCHoklch(28.45% 0.126 303.6)
XYZxyz(3.6896, 1.9377, 10.0751)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#380F5B #325B0F
analogous
#120F5B #380F5B #5B0F58
triadic
#380F5B #5B380F #0F5B38
tetradic
#380F5B #5B120F #325B0F #0F585B
square
#380F5B #5B120F #325B0F #0F585B
split-complementary
#380F5B #585B0F #0F5B12
monochromatic
#10041A #180626 #380F5B #581890 #7920C4

Accessibility & contrast

On white

15.13
#380F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#380F5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #380F5B
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##380F5B#FFFFFF#000000##FFFFFF
##380F5B1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00265A
Tritanopia (blue-blind)
#312335
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #380f5b;
/* rgb */ color: rgb(56, 15, 91);
/* oklch */ color: oklch(28.4% 0.126 303.6);
Tailwind
colors: {
  custom: {
    50: '#73538a',
    500: '#380f5b',
    950: '#000000',
  },
}
SCSS
$custom: #380f5b;
$custom-light: #73538a;
$custom-dark: #000000;
JSON
{
  "hex": "#380f5b",
  "rgb": {
    "r": 56,
    "g": 15,
    "b": 91
  },
  "hsl": {
    "h": 272.368,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28449,
    "c": 0.12575,
    "h": 303.6
  },
  "luminance": 0.01938
}

Semantic roles & 50–950 ramp

primary
#380F5B
secondary
#5F9531
accent
#EE398D
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #380F5B

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

Preview Lab → · Contrast checker → · Palette generator →

#380F5B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva