#381474#381474

#381474 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.149 H 292.6°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#381474
RGBrgb(56, 20, 116)
HSLhsl(263, 71%, 27%)
HSVhsv(263, 83%, 45%)
CMYKcmyk(51.7%, 82.8%, 0%, 54.5%)
CIE-LABlab(18.37, 39.59, -47.91)
CIE-LCHlch(18.37, 62.16, 309.57°)
OKLaboklab(31.44% 0.0572 -0.1376)
OKLCHoklch(31.44% 0.149 292.6)
XYZxyz(5.0325, 2.6018, 16.7567)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381474 #507414
analogous
#142074 #381474 #681474
triadic
#381474 #743814 #147438
tetradic
#381474 #741420 #507414 #147468
square
#381474 #741420 #507414 #147468
split-complementary
#381474 #746814 #207414
monochromatic
#0D051A #1F0B40 #381474 #511DA8 #6B28DA

Accessibility & contrast

On white

13.81
#381474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#381474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381474
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381474#FFFFFF#000000##FFFFFF
##3814741.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#243044
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #381474;
/* rgb */ color: rgb(56, 20, 116);
/* oklch */ color: oklch(31.4% 0.149 292.6);
Tailwind
colors: {
  custom: {
    50: '#76579d',
    500: '#381474',
    950: '#000000',
  },
}
SCSS
$custom: #381474;
$custom-light: #76579d;
$custom-dark: #000000;
JSON
{
  "hex": "#381474",
  "rgb": {
    "r": 56,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 262.5,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31439,
    "c": 0.14901,
    "h": 292.6
  },
  "luminance": 0.02602
}

Semantic roles & 50–950 ramp

primary
#381474
secondary
#80AA3A
accent
#ED3AAA
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381474

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

Preview Lab → · Contrast checker → · Palette generator →

#381474 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva