#381F5B#381F5B

#381F5B is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.7% C 0.103 H 299.4°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#381F5B
RGBrgb(56, 31, 91)
HSLhsl(265, 49%, 24%)
HSVhsv(265, 66%, 36%)
CMYKcmyk(38.5%, 65.9%, 0%, 64.3%)
CIE-LABlab(18.26, 26.38, -31.71)
CIE-LCHlch(18.26, 41.25, 309.75°)
OKLaboklab(30.66% 0.0508 -0.0901)
OKLCHoklch(30.66% 0.103 299.4)
XYZxyz(4.0087, 2.5760, 10.1815)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F5B #425B1F
analogous
#1F245B #381F5B #561F5B
triadic
#381F5B #5B381F #1F5B38
tetradic
#381F5B #5B1F24 #425B1F #1F5B56
square
#381F5B #5B1F24 #425B1F #1F5B56
split-complementary
#381F5B #5B561F #245B1F
monochromatic
#0E0817 #1C0F2D #381F5B #542F89 #703EB6

Accessibility & contrast

On white

13.86
#381F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#381F5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F5B
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F5B#FFFFFF#000000##FFFFFF
##381F5B1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5D
Deuteranopia (green-blind)
#082C5A
Tritanopia (blue-blind)
#302C39
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #381f5b;
/* rgb */ color: rgb(56, 31, 91);
/* oklch */ color: oklch(30.7% 0.103 299.4);
Tailwind
colors: {
  custom: {
    50: '#725c8a',
    500: '#381f5b',
    950: '#000000',
  },
}
SCSS
$custom: #381f5b;
$custom-light: #725c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#381f5b",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 91
  },
  "hsl": {
    "h": 265,
    "s": 49.18,
    "l": 23.922
  },
  "oklch": {
    "l": 0.30664,
    "c": 0.10343,
    "h": 299.4
  },
  "luminance": 0.02576
}

Semantic roles & 50–950 ramp

primary
#381F5B
secondary
#719046
accent
#D94F9F
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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