#381267#381267

#381267 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.136 H 297.7°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#381267
RGBrgb(56, 18, 103)
HSLhsl(267, 70%, 24%)
HSVhsv(267, 83%, 40%)
CMYKcmyk(45.6%, 82.5%, 0%, 59.6%)
CIE-LABlab(16.76, 36.88, -42.09)
CIE-LCHlch(16.76, 55.96, 311.22°)
OKLaboklab(29.92% 0.0632 -0.1205)
OKLCHoklch(29.92% 0.136 297.7)
XYZxyz(4.2947, 2.2526, 13.0378)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381267 #416712
analogous
#121667 #381267 #621267
triadic
#381267 #673812 #126738
tetradic
#381267 #671216 #416712 #126762
square
#381267 #671216 #416712 #126762
split-complementary
#381267 #676212 #166712
monochromatic
#0E051A #1C0933 #381267 #541B9B #7124CF

Accessibility & contrast

On white

14.48
#381267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#381267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381267
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381267#FFFFFF#000000##FFFFFF
##3812671.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002865
Tritanopia (blue-blind)
#2C293C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #381267;
/* rgb */ color: rgb(56, 18, 103);
/* oklch */ color: oklch(29.9% 0.136 297.7);
Tailwind
colors: {
  custom: {
    50: '#745593',
    500: '#381267',
    950: '#000000',
  },
}
SCSS
$custom: #381267;
$custom-light: #745593;
$custom-dark: #000000;
JSON
{
  "hex": "#381267",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 266.824,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29921,
    "c": 0.13606,
    "h": 297.7
  },
  "luminance": 0.02253
}

Semantic roles & 50–950 ramp

primary
#381267
secondary
#709F36
accent
#ED3B9D
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #381267

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

Preview Lab → · Contrast checker → · Palette generator →

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