#381F92#381F92

#381F92 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.174 H 283.2°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#381F92
RGBrgb(56, 31, 146)
HSLhsl(253, 65%, 35%)
HSVhsv(253, 79%, 57%)
CMYKcmyk(61.6%, 78.8%, 0%, 42.7%)
CIE-LABlab(23.32, 43.11, -58.71)
CIE-LCHlch(23.32, 72.84, 306.29°)
OKLaboklab(35.83% 0.0397 -0.1693)
OKLCHoklch(35.83% 0.174 283.2)
XYZxyz(7.3076, 3.8956, 27.5554)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F92 #79921F
analogous
#1F4092 #381F92 #711F92
triadic
#381F92 #92381F #1F9238
tetradic
#381F92 #921F40 #79921F #1F9271
square
#381F92 #921F40 #79921F #1F9271
split-complementary
#381F92 #92711F #40921F
monochromatic
#110A2D #251460 #381F92 #4B2AC4 #6F51DA

Accessibility & contrast

On white

11.80
#381F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#381F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F92
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F92#FFFFFF#000000##FFFFFF
##381F921.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B95
Deuteranopia (green-blind)
#003490
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #381f92;
/* rgb */ color: rgb(56, 31, 146);
/* oklch */ color: oklch(35.8% 0.174 283.2);
Tailwind
colors: {
  custom: {
    50: '#7b5eb3',
    500: '#381f92',
    950: '#000000',
  },
}
SCSS
$custom: #381f92;
$custom-light: #7b5eb3;
$custom-dark: #000000;
JSON
{
  "hex": "#381f92",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 146
  },
  "hsl": {
    "h": 253.043,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35826,
    "c": 0.17386,
    "h": 283.2
  },
  "luminance": 0.03896
}

Semantic roles & 50–950 ramp

primary
#381F92
secondary
#A5BD50
accent
#E840C3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #381F92

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

Preview Lab → · Contrast checker → · Palette generator →

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