#381B64#381B64

#381B64 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.121 H 296.8°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#381B64
RGBrgb(56, 27, 100)
HSLhsl(264, 57%, 25%)
HSVhsv(264, 73%, 39%)
CMYKcmyk(44%, 73%, 0%, 60.8%)
CIE-LABlab(18.12, 31.41, -37.90)
CIE-LCHlch(18.12, 49.22, 309.65°)
OKLaboklab(30.8% 0.0548 -0.1083)
OKLCHoklch(30.8% 0.121 296.8)
XYZxyz(4.3225, 2.5446, 12.3175)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B64 #47641B
analogous
#1B2264 #381B64 #5D1B64
triadic
#381B64 #64381B #1B6438
tetradic
#381B64 #641B22 #47641B #1B645D
square
#381B64 #641B22 #47641B #1B645D
split-complementary
#381B64 #645D1B #22641B
monochromatic
#0D0718 #1D0E34 #381B64 #532894 #6E35C4

Accessibility & contrast

On white

13.92
#381B64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#381B64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B64
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B64#FFFFFF#000000##FFFFFF
##381B641.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D66
Deuteranopia (green-blind)
#002B63
Tritanopia (blue-blind)
#2D2D3D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381b64;
/* rgb */ color: rgb(56, 27, 100);
/* oklch */ color: oklch(30.8% 0.121 296.8);
Tailwind
colors: {
  custom: {
    50: '#735a91',
    500: '#381b64',
    950: '#000000',
  },
}
SCSS
$custom: #381b64;
$custom-light: #735a91;
$custom-dark: #000000;
JSON
{
  "hex": "#381b64",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 100
  },
  "hsl": {
    "h": 263.836,
    "s": 57.48,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30795,
    "c": 0.12134,
    "h": 296.8
  },
  "luminance": 0.02545
}

Semantic roles & 50–950 ramp

primary
#381B64
secondary
#769941
accent
#E147A4
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040D
muted
#7B797D

Preview Lab

Preview with #381B64

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

Preview Lab → · Contrast checker → · Palette generator →

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