#381F74#381F74

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

Color values

HEX#381F74
RGBrgb(56, 31, 116)
HSLhsl(258, 58%, 29%)
HSVhsv(258, 73%, 45%)
CMYKcmyk(51.7%, 73.3%, 0%, 54.5%)
CIE-LABlab(20.37, 33.93, -44.65)
CIE-LCHlch(20.37, 56.08, 307.24°)
OKLaboklab(32.84% 0.0474 -0.1281)
OKLCHoklch(32.84% 0.137 290.3)
XYZxyz(5.2724, 3.0815, 16.8366)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F74 #5B741F
analogous
#1F3174 #381F74 #631F74
triadic
#381F74 #74381F #1F7438
tetradic
#381F74 #741F31 #5B741F #1F7463
square
#381F74 #741F31 #5B741F #1F7463
split-complementary
#381F74 #74631F #31741F
monochromatic
#0C0618 #211244 #381F74 #4F2CA4 #6A41CC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##381F74#FFFFFF#000000##FFFFFF
##381F741.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)
#003377
Deuteranopia (green-blind)
#002F72
Tritanopia (blue-blind)
#243547
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381f74;
/* rgb */ color: rgb(56, 31, 116);
/* oklch */ color: oklch(32.8% 0.137 290.3);
Tailwind
colors: {
  custom: {
    50: '#755d9d',
    500: '#381f74',
    950: '#000000',
  },
}
SCSS
$custom: #381f74;
$custom-light: #755d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#381f74",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 257.647,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32843,
    "c": 0.13659,
    "h": 290.3
  },
  "luminance": 0.03082
}

Semantic roles & 50–950 ramp

primary
#381F74
secondary
#8BA847
accent
#E147B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381F74

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

Preview Lab → · Contrast checker → · Palette generator →

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