#381F61#381F61

#381F61 is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.2% C 0.112 H 296.8°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#381F61
RGBrgb(56, 31, 97)
HSLhsl(263, 52%, 25%)
HSVhsv(263, 68%, 38%)
CMYKcmyk(42.3%, 68%, 0%, 62%)
CIE-LABlab(18.73, 28.16, -34.93)
CIE-LCHlch(18.73, 44.87, 308.87°)
OKLaboklab(31.16% 0.0504 -0.0995)
OKLCHoklch(31.16% 0.112 296.8)
XYZxyz(4.2780, 2.6837, 11.5996)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F61 #48611F
analogous
#1F2761 #381F61 #591F61
triadic
#381F61 #61381F #1F6138
tetradic
#381F61 #611F27 #48611F #1F6159
square
#381F61 #611F27 #48611F #1F6159
split-complementary
#381F61 #61591F #27611F
monochromatic
#0D0717 #1D1033 #381F61 #532E8F #6E3DBE

Accessibility & contrast

On white

13.66
#381F61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#381F61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F61
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F61#FFFFFF#000000##FFFFFF
##381F611.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E63
Deuteranopia (green-blind)
#002D60
Tritanopia (blue-blind)
#2E2E3D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381f61;
/* rgb */ color: rgb(56, 31, 97);
/* oklch */ color: oklch(31.2% 0.112 296.8);
Tailwind
colors: {
  custom: {
    50: '#725c8e',
    500: '#381f61',
    950: '#000000',
  },
}
SCSS
$custom: #381f61;
$custom-light: #725c8e;
$custom-dark: #000000;
JSON
{
  "hex": "#381f61",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 97
  },
  "hsl": {
    "h": 262.727,
    "s": 51.563,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31155,
    "c": 0.11156,
    "h": 296.8
  },
  "luminance": 0.02684
}

Semantic roles & 50–950 ramp

primary
#381F61
secondary
#789646
accent
#DB4DA5
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381F61

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

Preview Lab → · Contrast checker → · Palette generator →

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