#381B63#381B63

#381B63 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.120 H 297.2°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#381B63
RGBrgb(56, 27, 99)
HSLhsl(264, 57%, 25%)
HSVhsv(264, 73%, 39%)
CMYKcmyk(43.4%, 72.7%, 0%, 61.2%)
CIE-LABlab(18.03, 31.11, -37.38)
CIE-LCHlch(18.03, 48.64, 309.77°)
OKLaboklab(30.71% 0.055 -0.1067)
OKLCHoklch(30.71% 0.12 297.2)
XYZxyz(4.2744, 2.5254, 12.0642)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B63 #46631B
analogous
#1B2263 #381B63 #5C1B63
triadic
#381B63 #63381B #1B6338
tetradic
#381B63 #631B22 #46631B #1B635C
square
#381B63 #631B22 #46631B #1B635C
split-complementary
#381B63 #635C1B #22631B
monochromatic
#0E0718 #1D0E33 #381B63 #532893 #6E35C3

Accessibility & contrast

On white

13.95
#381B63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381B63
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B63#FFFFFF#000000##FFFFFF
##381B631.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C65
Deuteranopia (green-blind)
#002B62
Tritanopia (blue-blind)
#2D2C3C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381b63;
/* rgb */ color: rgb(56, 27, 99);
/* oklch */ color: oklch(30.7% 0.120 297.2);
Tailwind
colors: {
  custom: {
    50: '#735a90',
    500: '#381b63',
    950: '#000000',
  },
}
SCSS
$custom: #381b63;
$custom-light: #735a90;
$custom-dark: #000000;
JSON
{
  "hex": "#381b63",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 99
  },
  "hsl": {
    "h": 264.167,
    "s": 57.143,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30706,
    "c": 0.12005,
    "h": 297.2
  },
  "luminance": 0.02525
}

Semantic roles & 50–950 ramp

primary
#381B63
secondary
#759841
accent
#E047A3
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381B63

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

Preview Lab → · Contrast checker → · Palette generator →

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