#381E63#381E63

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

Color values

HEX#381E63
RGBrgb(56, 30, 99)
HSLhsl(263, 53%, 25%)
HSVhsv(263, 70%, 39%)
CMYKcmyk(43.4%, 69.7%, 0%, 61.2%)
CIE-LABlab(18.67, 29.36, -36.35)
CIE-LCHlch(18.67, 46.72, 308.93°)
OKLaboklab(31.16% 0.0514 -0.1037)
OKLCHoklch(31.16% 0.116 296.4)
XYZxyz(4.3467, 2.6701, 12.0883)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E63 #49631E
analogous
#1E2663 #381E63 #5A1E63
triadic
#381E63 #63381E #1E6338
tetradic
#381E63 #631E26 #49631E #1E635A
square
#381E63 #631E26 #49631E #1E635A
split-complementary
#381E63 #635A1E #26631E
monochromatic
#0D0717 #1D1034 #381E63 #532C92 #6D3AC1

Accessibility & contrast

On white

13.69
#381E63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#381E63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E63
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E63#FFFFFF#000000##FFFFFF
##381E631.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E65
Deuteranopia (green-blind)
#002D62
Tritanopia (blue-blind)
#2D2E3D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #381e63;
/* rgb */ color: rgb(56, 30, 99);
/* oklch */ color: oklch(31.2% 0.116 296.4);
Tailwind
colors: {
  custom: {
    50: '#735c90',
    500: '#381e63',
    950: '#000000',
  },
}
SCSS
$custom: #381e63;
$custom-light: #735c90;
$custom-dark: #000000;
JSON
{
  "hex": "#381e63",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 99
  },
  "hsl": {
    "h": 262.609,
    "s": 53.488,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31164,
    "c": 0.11573,
    "h": 296.4
  },
  "luminance": 0.0267
}

Semantic roles & 50–950 ramp

primary
#381E63
secondary
#799845
accent
#DD4BA6
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381E63

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

Preview Lab → · Contrast checker → · Palette generator →

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