#381B5E#381B5E

#381B5E is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.3% C 0.114 H 299.4°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#381B5E
RGBrgb(56, 27, 94)
HSLhsl(266, 55%, 24%)
HSVhsv(266, 71%, 37%)
CMYKcmyk(40.4%, 71.3%, 0%, 63.1%)
CIE-LABlab(17.61, 29.66, -34.76)
CIE-LCHlch(17.61, 45.69, 310.47°)
OKLaboklab(30.27% 0.0557 -0.099)
OKLCHoklch(30.27% 0.114 299.4)
XYZxyz(4.0427, 2.4327, 10.8441)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B5E #415E1B
analogous
#1B1F5E #381B5E #591B5E
triadic
#381B5E #5E381B #1B5E38
tetradic
#381B5E #5E1B1F #415E1B #1B5E59
square
#381B5E #5E1B1F #415E1B #1B5E59
split-complementary
#381B5E #5E591B #1F5E1B
monochromatic
#0E0718 #1C0D2E #381B5E #54298E #7136BD

Accessibility & contrast

On white

14.13
#381B5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#381B5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B5E
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B5E#FFFFFF#000000##FFFFFF
##381B5E1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B60
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#2F2A3A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #381b5e;
/* rgb */ color: rgb(56, 27, 94);
/* oklch */ color: oklch(30.3% 0.114 299.4);
Tailwind
colors: {
  custom: {
    50: '#72598c',
    500: '#381b5e',
    950: '#000000',
  },
}
SCSS
$custom: #381b5e;
$custom-light: #72598c;
$custom-dark: #000000;
JSON
{
  "hex": "#381b5e",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 94
  },
  "hsl": {
    "h": 265.97,
    "s": 55.372,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30272,
    "c": 0.11362,
    "h": 299.4
  },
  "luminance": 0.02433
}

Semantic roles & 50–950 ramp

primary
#381B5E
secondary
#709441
accent
#DF499E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381B5E

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

Preview Lab → · Contrast checker → · Palette generator →

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