#381868#381868

#381868 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.130 H 296.0°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#381868
RGBrgb(56, 24, 104)
HSLhsl(264, 63%, 25%)
HSVhsv(264, 77%, 41%)
CMYKcmyk(46.2%, 76.9%, 0%, 59.2%)
CIE-LABlab(17.89, 34.21, -40.91)
CIE-LCHlch(17.89, 53.33, 309.91°)
OKLaboklab(30.74% 0.0572 -0.1171)
OKLCHoklch(30.74% 0.13 296)
XYZxyz(4.4555, 2.4934, 13.3405)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381868 #486818
analogous
#182068 #381868 #601868
triadic
#381868 #683818 #186838
tetradic
#381868 #681820 #486818 #186860
square
#381868 #681820 #486818 #186860
split-complementary
#381868 #686018 #206818
monochromatic
#0D0619 #1D0D36 #381868 #53239A #6E2FCB

Accessibility & contrast

On white

14.01
#381868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#381868 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381868
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381868#FFFFFF#000000##FFFFFF
##3818681.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002B66
Tritanopia (blue-blind)
#2B2D3E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381868;
/* rgb */ color: rgb(56, 24, 104);
/* oklch */ color: oklch(30.7% 0.130 296.0);
Tailwind
colors: {
  custom: {
    50: '#745894',
    500: '#381868',
    950: '#000000',
  },
}
SCSS
$custom: #381868;
$custom-light: #745894;
$custom-dark: #000000;
JSON
{
  "hex": "#381868",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 264,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30742,
    "c": 0.1303,
    "h": 296
  },
  "luminance": 0.02493
}

Semantic roles & 50–950 ramp

primary
#381868
secondary
#789E3E
accent
#E642A4
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #381868

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

Preview Lab → · Contrast checker → · Palette generator →

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