#381D62#381D62

#381D62 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.9% C 0.116 H 297.1°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#381D62
RGBrgb(56, 29, 98)
HSLhsl(263, 54%, 25%)
HSVhsv(263, 70%, 38%)
CMYKcmyk(42.9%, 70.4%, 0%, 61.6%)
CIE-LABlab(18.37, 29.66, -36.17)
CIE-LCHlch(18.37, 46.78, 309.35°)
OKLaboklab(30.92% 0.0527 -0.1032)
OKLCHoklch(30.92% 0.116 297.1)
XYZxyz(4.2743, 2.6012, 11.8298)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D62 #47621D
analogous
#1D2562 #381D62 #5A1D62
triadic
#381D62 #62381D #1D6238
tetradic
#381D62 #621D25 #47621D #1D625A
square
#381D62 #621D25 #47621D #1D625A
split-complementary
#381D62 #625A1D #25621D
monochromatic
#0D0718 #1D0F33 #381D62 #532B91 #6E39C0

Accessibility & contrast

On white

13.81
#381D62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#381D62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D62
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D62#FFFFFF#000000##FFFFFF
##381D621.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381d62;
/* rgb */ color: rgb(56, 29, 98);
/* oklch */ color: oklch(30.9% 0.116 297.1);
Tailwind
colors: {
  custom: {
    50: '#735b8f',
    500: '#381d62',
    950: '#000000',
  },
}
SCSS
$custom: #381d62;
$custom-light: #735b8f;
$custom-dark: #000000;
JSON
{
  "hex": "#381d62",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 98
  },
  "hsl": {
    "h": 263.478,
    "s": 54.331,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30922,
    "c": 0.11589,
    "h": 297.1
  },
  "luminance": 0.02601
}

Semantic roles & 50–950 ramp

primary
#381D62
secondary
#769744
accent
#DE4AA4
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381D62

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

Preview Lab → · Contrast checker → · Palette generator →

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