#381F59#381F59

#381F59 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.5% C 0.101 H 300.4°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#381F59
RGBrgb(56, 31, 89)
HSLhsl(266, 48%, 24%)
HSVhsv(266, 65%, 35%)
CMYKcmyk(37.1%, 65.2%, 0%, 65.1%)
CIE-LABlab(18.11, 25.79, -30.62)
CIE-LCHlch(18.11, 40.03, 310.10°)
OKLaboklab(30.51% 0.0509 -0.0869)
OKLCHoklch(30.51% 0.101 300.4)
XYZxyz(3.9236, 2.5420, 9.7332)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F59 #40591F
analogous
#1F2359 #381F59 #551F59
triadic
#381F59 #59381F #1F5938
tetradic
#381F59 #591F23 #40591F #1F5955
square
#381F59 #591F23 #40591F #1F5955
split-complementary
#381F59 #59551F #23591F
monochromatic
#0E0817 #1B0F2C #381F59 #552F86 #713FB4

Accessibility & contrast

On white

13.92
#381F59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#381F59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F59
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F59#FFFFFF#000000##FFFFFF
##381F591.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5B
Deuteranopia (green-blind)
#0C2C58
Tritanopia (blue-blind)
#312B38
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381f59;
/* rgb */ color: rgb(56, 31, 89);
/* oklch */ color: oklch(30.5% 0.101 300.4);
Tailwind
colors: {
  custom: {
    50: '#715c88',
    500: '#381f59',
    950: '#000000',
  },
}
SCSS
$custom: #381f59;
$custom-light: #715c88;
$custom-dark: #000000;
JSON
{
  "hex": "#381f59",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 89
  },
  "hsl": {
    "h": 265.862,
    "s": 48.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30505,
    "c": 0.10069,
    "h": 300.4
  },
  "luminance": 0.02542
}

Semantic roles & 50–950 ramp

primary
#381F59
secondary
#6F8E46
accent
#D8509D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040B
muted
#7B797C

Preview Lab

Preview with #381F59

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

Preview Lab → · Contrast checker → · Palette generator →

#381F59 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva