#381B62#381B62

#381B62 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.6% C 0.119 H 297.7°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#381B62
RGBrgb(56, 27, 98)
HSLhsl(265, 57%, 25%)
HSVhsv(265, 72%, 38%)
CMYKcmyk(42.9%, 72.4%, 0%, 61.6%)
CIE-LABlab(17.95, 30.82, -36.86)
CIE-LCHlch(17.95, 48.05, 309.90°)
OKLaboklab(30.62% 0.0551 -0.1052)
OKLCHoklch(30.62% 0.119 297.7)
XYZxyz(4.2269, 2.5064, 11.8140)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B62 #45621B
analogous
#1B2262 #381B62 #5C1B62
triadic
#381B62 #62381B #1B6238
tetradic
#381B62 #621B22 #45621B #1B625C
square
#381B62 #621B22 #45621B #1B625C
split-complementary
#381B62 #625C1B #22621B
monochromatic
#0E0718 #1D0E32 #381B62 #532892 #6F35C2

Accessibility & contrast

On white

13.99
#381B62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#381B62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B62
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B62#FFFFFF#000000##FFFFFF
##381B621.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#002B61
Tritanopia (blue-blind)
#2E2C3C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381b62;
/* rgb */ color: rgb(56, 27, 98);
/* oklch */ color: oklch(30.6% 0.119 297.7);
Tailwind
colors: {
  custom: {
    50: '#735a8f',
    500: '#381b62',
    950: '#000000',
  },
}
SCSS
$custom: #381b62;
$custom-light: #735a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#381b62",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 98
  },
  "hsl": {
    "h": 264.507,
    "s": 56.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.30618,
    "c": 0.11877,
    "h": 297.7
  },
  "luminance": 0.02506
}

Semantic roles & 50–950 ramp

primary
#381B62
secondary
#749841
accent
#E048A2
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381B62

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

Preview Lab → · Contrast checker → · Palette generator →

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