#380F5A#380F5A

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

Color values

HEX#380F5A
RGBrgb(56, 15, 90)
HSLhsl(273, 71%, 21%)
HSVhsv(273, 83%, 35%)
CMYKcmyk(37.8%, 83.3%, 0%, 64.7%)
CIE-LABlab(15.06, 34.74, -36.22)
CIE-LCHlch(15.06, 50.19, 313.80°)
OKLaboklab(28.36% 0.0698 -0.1032)
OKLCHoklch(28.36% 0.125 304.1)
XYZxyz(3.6467, 1.9206, 9.8495)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#380F5A #315A0F
analogous
#120F5A #380F5A #5A0F56
triadic
#380F5A #5A380F #0F5A38
tetradic
#380F5A #5A120F #315A0F #0F565A
square
#380F5A #5A120F #315A0F #0F565A
split-complementary
#380F5A #565A0F #0F5A12
monochromatic
#10041A #170626 #380F5A #59188E #7920C3

Accessibility & contrast

On white

15.17
#380F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#380F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #380F5A
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##380F5A#FFFFFF#000000##FFFFFF
##380F5A1.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002659
Tritanopia (blue-blind)
#312334
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #380f5a;
/* rgb */ color: rgb(56, 15, 90);
/* oklch */ color: oklch(28.4% 0.125 304.1);
Tailwind
colors: {
  custom: {
    50: '#735389',
    500: '#380f5a',
    950: '#000000',
  },
}
SCSS
$custom: #380f5a;
$custom-light: #735389;
$custom-dark: #000000;
JSON
{
  "hex": "#380f5a",
  "rgb": {
    "r": 56,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 272.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28356,
    "c": 0.12463,
    "h": 304.1
  },
  "luminance": 0.01921
}

Semantic roles & 50–950 ramp

primary
#380F5A
secondary
#5E9431
accent
#EE3A8B
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #380F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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