#381A5B#381A5B

#381A5B is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.9% C 0.111 H 301.0°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#381A5B
RGBrgb(56, 26, 91)
HSLhsl(268, 56%, 23%)
HSVhsv(268, 71%, 36%)
CMYKcmyk(38.5%, 71.4%, 0%, 64.3%)
CIE-LABlab(17.15, 29.37, -33.49)
CIE-LCHlch(17.15, 44.55, 311.25°)
OKLaboklab(29.87% 0.0574 -0.0953)
OKLCHoklch(29.87% 0.111 301)
XYZxyz(3.8882, 2.3349, 10.1413)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A5B #3D5B1A
analogous
#1A1C5B #381A5B #581A5B
triadic
#381A5B #5B381A #1A5B38
tetradic
#381A5B #5B1A1C #3D5B1A #1A5B58
square
#381A5B #5B1A1C #3D5B1A #1A5B58
split-complementary
#381A5B #5B581A #1C5B1A
monochromatic
#0F0718 #1B0C2B #381A5B #55288B #7335BA

Accessibility & contrast

On white

14.31
#381A5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#381A5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A5B
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A5B#FFFFFF#000000##FFFFFF
##381A5B1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5D
Deuteranopia (green-blind)
#002A5A
Tritanopia (blue-blind)
#312938
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #381a5b;
/* rgb */ color: rgb(56, 26, 91);
/* oklch */ color: oklch(29.9% 0.111 301.0);
Tailwind
colors: {
  custom: {
    50: '#72598a',
    500: '#381a5b',
    950: '#000000',
  },
}
SCSS
$custom: #381a5b;
$custom-light: #72598a;
$custom-dark: #000000;
JSON
{
  "hex": "#381a5b",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 91
  },
  "hsl": {
    "h": 267.692,
    "s": 55.556,
    "l": 22.941
  },
  "oklch": {
    "l": 0.29866,
    "c": 0.11124,
    "h": 301
  },
  "luminance": 0.02335
}

Semantic roles & 50–950 ramp

primary
#381A5B
secondary
#6C9140
accent
#DF499A
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #381A5B

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

Preview Lab → · Contrast checker → · Palette generator →

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