#381E62#381E62

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

Color values

HEX#381E62
RGBrgb(56, 30, 98)
HSLhsl(263, 53%, 25%)
HSVhsv(263, 69%, 38%)
CMYKcmyk(42.9%, 69.4%, 0%, 61.6%)
CIE-LABlab(18.59, 29.06, -35.82)
CIE-LCHlch(18.59, 46.13, 309.05°)
OKLaboklab(31.08% 0.0515 -0.1022)
OKLCHoklch(31.08% 0.114 296.8)
XYZxyz(4.2992, 2.6511, 11.8381)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E62 #48621E
analogous
#1E2662 #381E62 #5A1E62
triadic
#381E62 #62381E #1E6238
tetradic
#381E62 #621E26 #48621E #1E625A
square
#381E62 #621E26 #48621E #1E625A
split-complementary
#381E62 #625A1E #26621E
monochromatic
#0D0717 #1D1033 #381E62 #532C91 #6E3BC0

Accessibility & contrast

On white

13.72
#381E62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381E62
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E62#FFFFFF#000000##FFFFFF
##381E621.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E64
Deuteranopia (green-blind)
#002C61
Tritanopia (blue-blind)
#2E2E3D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #381e62;
/* rgb */ color: rgb(56, 30, 98);
/* oklch */ color: oklch(31.1% 0.114 296.8);
Tailwind
colors: {
  custom: {
    50: '#735b8f',
    500: '#381e62',
    950: '#000000',
  },
}
SCSS
$custom: #381e62;
$custom-light: #735b8f;
$custom-dark: #000000;
JSON
{
  "hex": "#381e62",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 98
  },
  "hsl": {
    "h": 262.941,
    "s": 53.125,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31079,
    "c": 0.11441,
    "h": 296.8
  },
  "luminance": 0.02651
}

Semantic roles & 50–950 ramp

primary
#381E62
secondary
#789745
accent
#DD4BA5
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381E62

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

Preview Lab → · Contrast checker → · Palette generator →

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