#381A66#381A66

#381A66 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.125 H 296.3°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#381A66
RGBrgb(56, 26, 102)
HSLhsl(264, 59%, 25%)
HSVhsv(264, 75%, 40%)
CMYKcmyk(45.1%, 74.5%, 0%, 60%)
CIE-LABlab(18.09, 32.55, -39.26)
CIE-LCHlch(18.09, 51.00, 309.66°)
OKLaboklab(30.83% 0.0555 -0.1122)
OKLCHoklch(30.83% 0.125 296.3)
XYZxyz(4.3979, 2.5388, 12.8261)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A66 #48661A
analogous
#1A2266 #381A66 #5E1A66
triadic
#381A66 #66381A #1A6638
tetradic
#381A66 #661A22 #48661A #1A665E
square
#381A66 #661A22 #48661A #1A665E
split-complementary
#381A66 #665E1A #22661A
monochromatic
#0D0618 #1D0E35 #381A66 #532697 #6E33C8

Accessibility & contrast

On white

13.93
#381A66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381A66
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A66#FFFFFF#000000##FFFFFF
##381A661.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D68
Deuteranopia (green-blind)
#002B64
Tritanopia (blue-blind)
#2C2D3E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381a66;
/* rgb */ color: rgb(56, 26, 102);
/* oklch */ color: oklch(30.8% 0.125 296.3);
Tailwind
colors: {
  custom: {
    50: '#735992',
    500: '#381a66',
    950: '#000000',
  },
}
SCSS
$custom: #381a66;
$custom-light: #735992;
$custom-dark: #000000;
JSON
{
  "hex": "#381a66",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 102
  },
  "hsl": {
    "h": 263.684,
    "s": 59.375,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30831,
    "c": 0.12523,
    "h": 296.3
  },
  "luminance": 0.02539
}

Semantic roles & 50–950 ramp

primary
#381A66
secondary
#789C40
accent
#E345A4
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #381A66

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

Preview Lab → · Contrast checker → · Palette generator →

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