#381E7C#381E7C

#381E7C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.148 H 288.3°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#381E7C
RGBrgb(56, 30, 124)
HSLhsl(257, 61%, 30%)
HSVhsv(257, 76%, 49%)
CMYKcmyk(54.8%, 75.8%, 0%, 51.4%)
CIE-LABlab(20.92, 36.94, -48.86)
CIE-LCHlch(20.92, 61.25, 307.09°)
OKLaboklab(33.47% 0.0465 -0.1404)
OKLCHoklch(33.47% 0.148 288.3)
XYZxyz(5.7322, 3.2243, 19.3852)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E7C #627C1E
analogous
#1E337C #381E7C #671E7C
triadic
#381E7C #7C381E #1E7C38
tetradic
#381E7C #7C1E33 #627C1E #1E7C67
square
#381E7C #7C1E33 #627C1E #1E7C67
split-complementary
#381E7C #7C671E #337C1E
monochromatic
#0B0619 #22124B #381E7C #4E2AAD #6A43D1

Accessibility & contrast

On white

12.77
#381E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#381E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E7C
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E7C#FFFFFF#000000##FFFFFF
##381E7C1.0012.771.6512.77
#FFFFFF12.771.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#1D374B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381e7c;
/* rgb */ color: rgb(56, 30, 124);
/* oklch */ color: oklch(33.5% 0.148 288.3);
Tailwind
colors: {
  custom: {
    50: '#775da3',
    500: '#381e7c',
    950: '#000000',
  },
}
SCSS
$custom: #381e7c;
$custom-light: #775da3;
$custom-dark: #000000;
JSON
{
  "hex": "#381e7c",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 124
  },
  "hsl": {
    "h": 256.596,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33467,
    "c": 0.14794,
    "h": 288.3
  },
  "luminance": 0.03225
}

Semantic roles & 50–950 ramp

primary
#381E7C
secondary
#92AF46
accent
#E444B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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