#381268#381268

#381268 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.137 H 297.3°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#381268
RGBrgb(56, 18, 104)
HSLhsl(267, 70%, 24%)
HSVhsv(267, 83%, 41%)
CMYKcmyk(46.2%, 82.7%, 0%, 59.2%)
CIE-LABlab(16.86, 37.15, -42.59)
CIE-LCHlch(16.86, 56.52, 311.10°)
OKLaboklab(30.02% 0.0628 -0.122)
OKLCHoklch(30.02% 0.137 297.3)
XYZxyz(4.3452, 2.2728, 13.3038)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381268 #426812
analogous
#121768 #381268 #631268
triadic
#381268 #683812 #126838
tetradic
#381268 #681217 #426812 #126863
square
#381268 #681217 #426812 #126863
split-complementary
#381268 #686312 #176812
monochromatic
#0E051A #1C0934 #381268 #541B9C #7024D0

Accessibility & contrast

On white

14.44
#381268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381268
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381268#FFFFFF#000000##FFFFFF
##3812681.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002966
Tritanopia (blue-blind)
#2B2A3D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #381268;
/* rgb */ color: rgb(56, 18, 104);
/* oklch */ color: oklch(30.0% 0.137 297.3);
Tailwind
colors: {
  custom: {
    50: '#745594',
    500: '#381268',
    950: '#000000',
  },
}
SCSS
$custom: #381268;
$custom-light: #745594;
$custom-dark: #000000;
JSON
{
  "hex": "#381268",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 104
  },
  "hsl": {
    "h": 266.512,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.30019,
    "c": 0.13721,
    "h": 297.3
  },
  "luminance": 0.02273
}

Semantic roles & 50–950 ramp

primary
#381268
secondary
#71A036
accent
#ED3B9E
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #381268

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

Preview Lab → · Contrast checker → · Palette generator →

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