#381B57#381B57

#381B57 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.7% C 0.105 H 302.7°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#381B57
RGBrgb(56, 27, 87)
HSLhsl(269, 53%, 22%)
HSVhsv(269, 69%, 34%)
CMYKcmyk(35.6%, 69%, 0%, 65.9%)
CIE-LABlab(17.05, 27.65, -30.98)
CIE-LCHlch(17.05, 41.53, 311.75°)
OKLaboklab(29.69% 0.0565 -0.0879)
OKLCHoklch(29.69% 0.105 302.7)
XYZxyz(3.7427, 2.3127, 9.2642)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B57 #3A571B
analogous
#1B1C57 #381B57 #561B57
triadic
#381B57 #57381B #1B5738
tetradic
#381B57 #571B1C #3A571B #1B5756
square
#381B57 #571B1C #3A571B #1B5756
split-complementary
#381B57 #57561B #1C571B
monochromatic
#0F0717 #1A0D28 #381B57 #562986 #7438B4

Accessibility & contrast

On white

14.36
#381B57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#381B57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B57
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B57#FFFFFF#000000##FFFFFF
##381B571.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002959
Deuteranopia (green-blind)
#072A56
Tritanopia (blue-blind)
#322836
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #381b57;
/* rgb */ color: rgb(56, 27, 87);
/* oklch */ color: oklch(29.7% 0.105 302.7);
Tailwind
colors: {
  custom: {
    50: '#715987',
    500: '#381b57',
    950: '#000000',
  },
}
SCSS
$custom: #381b57;
$custom-light: #715987;
$custom-dark: #000000;
JSON
{
  "hex": "#381b57",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 87
  },
  "hsl": {
    "h": 269,
    "s": 52.632,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29689,
    "c": 0.10452,
    "h": 302.7
  },
  "luminance": 0.02313
}

Semantic roles & 50–950 ramp

primary
#381B57
secondary
#688D41
accent
#DC4C96
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381B57

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

Preview Lab → · Contrast checker → · Palette generator →

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