#381E8A#381E8A

#381E8A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.165 H 285.0°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#381E8A
RGBrgb(56, 30, 138)
HSLhsl(254, 64%, 33%)
HSVhsv(254, 78%, 54%)
CMYKcmyk(59.4%, 78.3%, 0%, 45.9%)
CIE-LABlab(22.32, 41.20, -55.39)
CIE-LCHlch(22.32, 69.03, 306.64°)
OKLaboklab(34.87% 0.0427 -0.1596)
OKLCHoklch(34.87% 0.165 285)
XYZxyz(6.6812, 3.6039, 24.3834)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E8A #708A1E
analogous
#1E3A8A #381E8A #6E1E8A
triadic
#381E8A #8A381E #1E8A38
tetradic
#381E8A #8A1E3A #708A1E #1E8A6E
square
#381E8A #8A1E3A #708A1E #1E8A6E
split-complementary
#381E8A #8A6E1E #3A8A1E
monochromatic
#0F0825 #241358 #381E8A #4C29BC #6D4BD8

Accessibility & contrast

On white

12.20
#381E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#381E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E8A
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E8A#FFFFFF#000000##FFFFFF
##381E8A1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#0B3D53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #381e8a;
/* rgb */ color: rgb(56, 30, 138);
/* oklch */ color: oklch(34.9% 0.165 285.0);
Tailwind
colors: {
  custom: {
    50: '#795dad',
    500: '#381e8a',
    950: '#000000',
  },
}
SCSS
$custom: #381e8a;
$custom-light: #795dad;
$custom-dark: #000000;
JSON
{
  "hex": "#381e8a",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 254.444,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34872,
    "c": 0.16519,
    "h": 285
  },
  "luminance": 0.03604
}

Semantic roles & 50–950 ramp

primary
#381E8A
secondary
#9FBA4A
accent
#E741BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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