#381E75#381E75

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

Color values

HEX#381E75
RGBrgb(56, 30, 117)
HSLhsl(258, 59%, 29%)
HSVhsv(258, 74%, 46%)
CMYKcmyk(52.1%, 74.4%, 0%, 54.1%)
CIE-LABlab(20.26, 34.80, -45.47)
CIE-LCHlch(20.26, 57.26, 307.43°)
OKLaboklab(32.79% 0.0482 -0.1305)
OKLCHoklch(32.79% 0.139 290.3)
XYZxyz(5.3051, 3.0534, 17.1360)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E75 #5B751E
analogous
#1E3075 #381E75 #641E75
triadic
#381E75 #75381E #1E7538
tetradic
#381E75 #751E30 #5B751E #1E7564
square
#381E75 #751E30 #5B751E #1E7564
split-complementary
#381E75 #75641E #30751E
monochromatic
#0C0618 #211244 #381E75 #4F2AA6 #6A40CE

Accessibility & contrast

On white

13.04
#381E75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381E75
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E75#FFFFFF#000000##FFFFFF
##381E751.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003278
Deuteranopia (green-blind)
#002F73
Tritanopia (blue-blind)
#233547
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381e75;
/* rgb */ color: rgb(56, 30, 117);
/* oklch */ color: oklch(32.8% 0.139 290.3);
Tailwind
colors: {
  custom: {
    50: '#755c9e',
    500: '#381e75',
    950: '#000000',
  },
}
SCSS
$custom: #381e75;
$custom-light: #755c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#381e75",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 117
  },
  "hsl": {
    "h": 257.931,
    "s": 59.184,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32793,
    "c": 0.13912,
    "h": 290.3
  },
  "luminance": 0.03054
}

Semantic roles & 50–950 ramp

primary
#381E75
secondary
#8BA946
accent
#E245B3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381E75

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

Preview Lab → · Contrast checker → · Palette generator →

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