#381F75#381F75

#381F75 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.138 H 290.0°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#381F75
RGBrgb(56, 31, 117)
HSLhsl(257, 58%, 29%)
HSVhsv(257, 74%, 46%)
CMYKcmyk(52.1%, 73.5%, 0%, 54.1%)
CIE-LABlab(20.46, 34.24, -45.14)
CIE-LCHlch(20.46, 56.65, 307.18°)
OKLaboklab(32.94% 0.0472 -0.1295)
OKLCHoklch(32.94% 0.138 290)
XYZxyz(5.3308, 3.1049, 17.1446)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F75 #5C751F
analogous
#1F3175 #381F75 #631F75
triadic
#381F75 #75381F #1F7538
tetradic
#381F75 #751F31 #5C751F #1F7563
square
#381F75 #751F31 #5C751F #1F7563
split-complementary
#381F75 #75631F #31751F
monochromatic
#0C0618 #211245 #381F75 #4F2CA5 #6A42CD

Accessibility & contrast

On white

12.95
#381F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381F75
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F75#FFFFFF#000000##FFFFFF
##381F751.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381f75;
/* rgb */ color: rgb(56, 31, 117);
/* oklch */ color: oklch(32.9% 0.138 290.0);
Tailwind
colors: {
  custom: {
    50: '#755d9e',
    500: '#381f75',
    950: '#000000',
  },
}
SCSS
$custom: #381f75;
$custom-light: #755d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#381f75",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 117
  },
  "hsl": {
    "h": 257.442,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32937,
    "c": 0.13787,
    "h": 290
  },
  "luminance": 0.03105
}

Semantic roles & 50–950 ramp

primary
#381F75
secondary
#8CA947
accent
#E146B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381F75

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

Preview Lab → · Contrast checker → · Palette generator →

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