#381D74#381D74

#381D74 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.139 H 290.8°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#381D74
RGBrgb(56, 29, 116)
HSLhsl(259, 60%, 28%)
HSVhsv(259, 75%, 45%)
CMYKcmyk(51.7%, 75%, 0%, 54.5%)
CIE-LABlab(19.96, 35.06, -45.30)
CIE-LCHlch(19.96, 57.28, 307.73°)
OKLaboklab(32.56% 0.0494 -0.13)
OKLCHoklch(32.56% 0.139 290.8)
XYZxyz(5.2217, 2.9802, 16.8197)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D74 #59741D
analogous
#1D2D74 #381D74 #631D74
triadic
#381D74 #74381D #1D7438
tetradic
#381D74 #741D2D #59741D #1D7463
square
#381D74 #741D2D #59741D #1D7463
split-complementary
#381D74 #74631D #2D741D
monochromatic
#0C0618 #201143 #381D74 #5029A5 #6A3DCE

Accessibility & contrast

On white

13.16
#381D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#381D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D74
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D74#FFFFFF#000000##FFFFFF
##381D741.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#002E72
Tritanopia (blue-blind)
#243446
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381d74;
/* rgb */ color: rgb(56, 29, 116);
/* oklch */ color: oklch(32.6% 0.139 290.8);
Tailwind
colors: {
  custom: {
    50: '#755c9d',
    500: '#381d74',
    950: '#000000',
  },
}
SCSS
$custom: #381d74;
$custom-light: #755c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#381d74",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 116
  },
  "hsl": {
    "h": 258.621,
    "s": 60,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32557,
    "c": 0.13907,
    "h": 290.8
  },
  "luminance": 0.0298
}

Semantic roles & 50–950 ramp

primary
#381D74
secondary
#89A845
accent
#E345B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381D74

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

Preview Lab → · Contrast checker → · Palette generator →

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