#381E81#381E81

#381E81 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.154 H 287.1°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#381E81
RGBrgb(56, 30, 129)
HSLhsl(256, 62%, 31%)
HSVhsv(256, 77%, 51%)
CMYKcmyk(56.6%, 76.7%, 0%, 49.4%)
CIE-LABlab(21.41, 38.46, -51.22)
CIE-LCHlch(21.41, 64.06, 306.90°)
OKLaboklab(33.96% 0.0452 -0.1474)
OKLCHoklch(33.96% 0.154 287.1)
XYZxyz(6.0564, 3.3540, 21.0929)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E81 #67811E
analogous
#1E3581 #381E81 #691E81
triadic
#381E81 #81381E #1E8138
tetradic
#381E81 #811E35 #67811E #1E8169
square
#381E81 #811E35 #67811E #1E8169
split-complementary
#381E81 #81691E #35811E
monochromatic
#0D071E #22124F #381E81 #4E2AB3 #6B46D4

Accessibility & contrast

On white

12.57
#381E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#381E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E81
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E81#FFFFFF#000000##FFFFFF
##381E811.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#18394E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381e81;
/* rgb */ color: rgb(56, 30, 129);
/* oklch */ color: oklch(34.0% 0.154 287.1);
Tailwind
colors: {
  custom: {
    50: '#775da7',
    500: '#381e81',
    950: '#000000',
  },
}
SCSS
$custom: #381e81;
$custom-light: #775da7;
$custom-dark: #000000;
JSON
{
  "hex": "#381e81",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 129
  },
  "hsl": {
    "h": 255.758,
    "s": 62.264,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33961,
    "c": 0.15416,
    "h": 287.1
  },
  "luminance": 0.03354
}

Semantic roles & 50–950 ramp

primary
#381E81
secondary
#97B447
accent
#E542BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #381E81

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

Preview Lab → · Contrast checker → · Palette generator →

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