#381A7E#381A7E

#381A7E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.155 H 288.6°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#381A7E
RGBrgb(56, 26, 126)
HSLhsl(258, 66%, 30%)
HSVhsv(258, 79%, 49%)
CMYKcmyk(55.6%, 79.4%, 0%, 50.6%)
CIE-LABlab(20.38, 39.63, -51.01)
CIE-LCHlch(20.38, 64.59, 307.84°)
OKLaboklab(33.15% 0.0493 -0.1467)
OKLCHoklch(33.15% 0.155 288.6)
XYZxyz(5.7651, 3.0856, 20.0264)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A7E #607E1A
analogous
#1A2E7E #381A7E #6A1A7E
triadic
#381A7E #7E381A #1A7E38
tetradic
#381A7E #7E1A2E #607E1A #1A7E6A
square
#381A7E #7E1A2E #607E1A #1A7E6A
split-complementary
#381A7E #7E6A1A #2E7E1A
monochromatic
#0B0519 #21104B #381A7E #4F24B1 #6A3CD7

Accessibility & contrast

On white

12.99
#381A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#381A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A7E
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A7E#FFFFFF#000000##FFFFFF
##381A7E1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#1C364B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381a7e;
/* rgb */ color: rgb(56, 26, 126);
/* oklch */ color: oklch(33.1% 0.155 288.6);
Tailwind
colors: {
  custom: {
    50: '#775aa4',
    500: '#381a7e',
    950: '#000000',
  },
}
SCSS
$custom: #381a7e;
$custom-light: #775aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#381a7e",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 258,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3315,
    "c": 0.15477,
    "h": 288.6
  },
  "luminance": 0.03086
}

Semantic roles & 50–950 ramp

primary
#381A7E
secondary
#90B242
accent
#E93FB6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #381A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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