#380F58#380F58

#380F58 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.122 H 305.1°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#380F58
RGBrgb(56, 15, 88)
HSLhsl(274, 71%, 20%)
HSVhsv(274, 83%, 35%)
CMYKcmyk(36.4%, 83%, 0%, 65.5%)
CIE-LABlab(14.88, 34.22, -35.17)
CIE-LCHlch(14.88, 49.07, 314.22°)
OKLaboklab(28.17% 0.0704 -0.1002)
OKLCHoklch(28.17% 0.122 305.1)
XYZxyz(3.5628, 1.8870, 9.4072)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#380F58 #2F580F
analogous
#140F58 #380F58 #580F53
triadic
#380F58 #58380F #0F5838
tetradic
#380F58 #58140F #2F580F #0F5358
square
#380F58 #58140F #2F580F #0F5358
split-complementary
#380F58 #53580F #0F5814
monochromatic
#11041A #170624 #380F58 #59188C #7B21C1

Accessibility & contrast

On white

15.25
#380F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #380F58
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##380F58#FFFFFF#000000##FFFFFF
##380F581.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#322233
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #380f58;
/* rgb */ color: rgb(56, 15, 88);
/* oklch */ color: oklch(28.2% 0.122 305.1);
Tailwind
colors: {
  custom: {
    50: '#735388',
    500: '#380f58',
    950: '#000000',
  },
}
SCSS
$custom: #380f58;
$custom-light: #735388;
$custom-dark: #000000;
JSON
{
  "hex": "#380f58",
  "rgb": {
    "r": 56,
    "g": 15,
    "b": 88
  },
  "hsl": {
    "h": 273.699,
    "s": 70.874,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28171,
    "c": 0.1224,
    "h": 305.1
  },
  "luminance": 0.01887
}

Semantic roles & 50–950 ramp

primary
#380F58
secondary
#5B9231
accent
#EE3A89
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08020B
muted
#7B787C

Preview Lab

Preview with #380F58

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

Preview Lab → · Contrast checker → · Palette generator →

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