#380F5F#380F5F

#380F5F is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.130 H 301.6°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#380F5F
RGBrgb(56, 15, 95)
HSLhsl(271, 73%, 22%)
HSVhsv(271, 84%, 37%)
CMYKcmyk(41.1%, 84.2%, 0%, 62.7%)
CIE-LABlab(15.53, 36.05, -38.81)
CIE-LCHlch(15.53, 52.97, 312.89°)
OKLaboklab(28.83% 0.0683 -0.1108)
OKLCHoklch(28.83% 0.13 301.6)
XYZxyz(3.8668, 2.0086, 11.0082)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#380F5F #365F0F
analogous
#100F5F #380F5F #5F0F5E
triadic
#380F5F #5F380F #0F5F38
tetradic
#380F5F #5F100F #365F0F #0F5E5F
square
#380F5F #5F100F #365F0F #0F5E5F
split-complementary
#380F5F #5E5F0F #0F5F10
monochromatic
#10041A #19072A #380F5F #571794 #7620C9

Accessibility & contrast

On white

14.98
#380F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#380F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #380F5F
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##380F5F#FFFFFF#000000##FFFFFF
##380F5F1.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00265D
Tritanopia (blue-blind)
#2F2537
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #380f5f;
/* rgb */ color: rgb(56, 15, 95);
/* oklch */ color: oklch(28.8% 0.130 301.6);
Tailwind
colors: {
  custom: {
    50: '#73538d',
    500: '#380f5f',
    950: '#000000',
  },
}
SCSS
$custom: #380f5f;
$custom-light: #73538d;
$custom-dark: #000000;
JSON
{
  "hex": "#380f5f",
  "rgb": {
    "r": 56,
    "g": 15,
    "b": 95
  },
  "hsl": {
    "h": 270.75,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28827,
    "c": 0.1302,
    "h": 301.6
  },
  "luminance": 0.02009
}

Semantic roles & 50–950 ramp

primary
#380F5F
secondary
#649832
accent
#EF3892
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #380F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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