#381A7C#381A7C

#381A7C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.152 H 289.1°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#381A7C
RGBrgb(56, 26, 124)
HSLhsl(258, 65%, 29%)
HSVhsv(258, 79%, 49%)
CMYKcmyk(54.8%, 79%, 0%, 51.4%)
CIE-LABlab(20.18, 39.04, -50.07)
CIE-LCHlch(20.18, 63.49, 307.94°)
OKLaboklab(32.95% 0.0499 -0.144)
OKLCHoklch(32.95% 0.152 289.1)
XYZxyz(5.6373, 3.0345, 19.3536)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A7C #5E7C1A
analogous
#1A2D7C #381A7C #691A7C
triadic
#381A7C #7C381A #1A7C38
tetradic
#381A7C #7C1A2D #5E7C1A #1A7C69
square
#381A7C #7C1A2D #5E7C1A #1A7C69
split-complementary
#381A7C #7C691A #2D7C1A
monochromatic
#0B0519 #210F49 #381A7C #4F25AF #6A3BD6

Accessibility & contrast

On white

13.07
#381A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#381A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A7C
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A7C#FFFFFF#000000##FFFFFF
##381A7C1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#1E364A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381a7c;
/* rgb */ color: rgb(56, 26, 124);
/* oklch */ color: oklch(32.9% 0.152 289.1);
Tailwind
colors: {
  custom: {
    50: '#775aa3',
    500: '#381a7c',
    950: '#000000',
  },
}
SCSS
$custom: #381a7c;
$custom-light: #775aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#381a7c",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 258.367,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32947,
    "c": 0.15236,
    "h": 289.1
  },
  "luminance": 0.03035
}

Semantic roles & 50–950 ramp

primary
#381A7C
secondary
#8EB042
accent
#E840B5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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