#381F67#381F67

#381F67 is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.7% C 0.120 H 294.5°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#381F67
RGBrgb(56, 31, 103)
HSLhsl(261, 54%, 26%)
HSVhsv(261, 70%, 40%)
CMYKcmyk(45.6%, 69.9%, 0%, 59.6%)
CIE-LABlab(19.22, 29.97, -38.08)
CIE-LCHlch(19.22, 48.45, 308.20°)
OKLaboklab(31.67% 0.0497 -0.1088)
OKLCHoklch(31.67% 0.12 294.5)
XYZxyz(4.5684, 2.7999, 13.1291)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F67 #4E671F
analogous
#1F2A67 #381F67 #5C1F67
triadic
#381F67 #67381F #1F6738
tetradic
#381F67 #671F2A #4E671F #1F675C
square
#381F67 #671F2A #4E671F #1F675C
split-complementary
#381F67 #675C1F #2A671F
monochromatic
#0D0718 #1E1138 #381F67 #522D96 #6B3CC4

Accessibility & contrast

On white

13.46
#381F67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#381F67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F67
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F67#FFFFFF#000000##FFFFFF
##381F671.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F69
Deuteranopia (green-blind)
#002D66
Tritanopia (blue-blind)
#2B3040
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381f67;
/* rgb */ color: rgb(56, 31, 103);
/* oklch */ color: oklch(31.7% 0.120 294.5);
Tailwind
colors: {
  custom: {
    50: '#735c93',
    500: '#381f67',
    950: '#000000',
  },
}
SCSS
$custom: #381f67;
$custom-light: #735c93;
$custom-dark: #000000;
JSON
{
  "hex": "#381f67",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 103
  },
  "hsl": {
    "h": 260.833,
    "s": 53.731,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31668,
    "c": 0.11958,
    "h": 294.5
  },
  "luminance": 0.028
}

Semantic roles & 50–950 ramp

primary
#381F67
secondary
#7E9B46
accent
#DD4BAA
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #381F67

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

Preview Lab → · Contrast checker → · Palette generator →

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