#381A8F#381A8F

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

Color values

HEX#381A8F
RGBrgb(56, 26, 143)
HSLhsl(255, 69%, 33%)
HSVhsv(255, 82%, 56%)
CMYKcmyk(60.8%, 81.8%, 0%, 43.9%)
CIE-LABlab(22.17, 44.63, -58.75)
CIE-LCHlch(22.17, 73.78, 307.22°)
OKLaboklab(34.93% 0.0439 -0.1693)
OKLCHoklch(34.93% 0.175 284.5)
XYZxyz(6.9567, 3.5623, 26.3023)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A8F #718F1A
analogous
#1A368F #381A8F #721A8F
triadic
#381A8F #8F381A #1A8F38
tetradic
#381A8F #8F1A36 #718F1A #1A8F72
square
#381A8F #8F1A36 #718F1A #1A8F72
split-complementary
#381A8F #8F721A #368F1A
monochromatic
#0F0727 #24115B #381A8F #4C23C3 #6D46DD

Accessibility & contrast

On white

12.26
#381A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#381A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A8F
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A8F#FFFFFF#000000##FFFFFF
##381A8F1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #381a8f;
/* rgb */ color: rgb(56, 26, 143);
/* oklch */ color: oklch(34.9% 0.175 284.5);
Tailwind
colors: {
  custom: {
    50: '#7a5cb1',
    500: '#381a8f',
    950: '#000000',
  },
}
SCSS
$custom: #381a8f;
$custom-light: #7a5cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#381a8f",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 255.385,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34927,
    "c": 0.17492,
    "h": 284.5
  },
  "luminance": 0.03563
}

Semantic roles & 50–950 ramp

primary
#381A8F
secondary
#A0BF46
accent
#EC3CBF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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