#381666#381666

#381666 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.130 H 297.3°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#381666
RGBrgb(56, 22, 102)
HSLhsl(266, 65%, 24%)
HSVhsv(266, 78%, 40%)
CMYKcmyk(45.1%, 78.4%, 0%, 60%)
CIE-LABlab(17.34, 34.68, -40.49)
CIE-LCHlch(17.34, 53.31, 310.58°)
OKLaboklab(30.3% 0.0597 -0.1158)
OKLCHoklch(30.3% 0.13 297.3)
XYZxyz(4.3154, 2.3738, 12.7986)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381666 #446616
analogous
#161C66 #381666 #601666
triadic
#381666 #663816 #166638
tetradic
#381666 #66161C #446616 #166660
square
#381666 #66161C #446616 #166660
split-complementary
#381666 #666016 #1C6616
monochromatic
#0E0519 #1C0B34 #381666 #542198 #6F2CCB

Accessibility & contrast

On white

14.24
#381666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#381666 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381666
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381666#FFFFFF#000000##FFFFFF
##3816661.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002A64
Tritanopia (blue-blind)
#2C2B3D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #381666;
/* rgb */ color: rgb(56, 22, 102);
/* oklch */ color: oklch(30.3% 0.130 297.3);
Tailwind
colors: {
  custom: {
    50: '#745792',
    500: '#381666',
    950: '#000000',
  },
}
SCSS
$custom: #381666;
$custom-light: #745792;
$custom-dark: #000000;
JSON
{
  "hex": "#381666",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 102
  },
  "hsl": {
    "h": 265.5,
    "s": 64.516,
    "l": 24.314
  },
  "oklch": {
    "l": 0.30296,
    "c": 0.13032,
    "h": 297.3
  },
  "luminance": 0.02374
}

Semantic roles & 50–950 ramp

primary
#381666
secondary
#739D3B
accent
#E840A0
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #381666

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

Preview Lab → · Contrast checker → · Palette generator →

#381666 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva