#381462#381462

#381462 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.128 H 299.4°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#381462
RGBrgb(56, 20, 98)
HSLhsl(268, 66%, 23%)
HSVhsv(268, 80%, 38%)
CMYKcmyk(42.9%, 79.6%, 0%, 61.6%)
CIE-LABlab(16.62, 34.56, -39.03)
CIE-LCHlch(16.62, 52.13, 311.52°)
OKLaboklab(29.67% 0.0627 -0.1115)
OKLCHoklch(29.67% 0.128 299.4)
XYZxyz(4.0851, 2.2229, 11.7667)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381462 #3E6214
analogous
#141762 #381462 #5F1462
triadic
#381462 #623814 #146238
tetradic
#381462 #621417 #3E6214 #14625F
square
#381462 #621417 #3E6214 #14625F
split-complementary
#381462 #625F14 #176214
monochromatic
#0F0519 #1B0A2F #381462 #551E95 #7229C8

Accessibility & contrast

On white

14.54
#381462 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#381462 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381462
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381462#FFFFFF#000000##FFFFFF
##3814621.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002860
Tritanopia (blue-blind)
#2E283A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #381462;
/* rgb */ color: rgb(56, 20, 98);
/* oklch */ color: oklch(29.7% 0.128 299.4);
Tailwind
colors: {
  custom: {
    50: '#73568f',
    500: '#381462',
    950: '#000000',
  },
}
SCSS
$custom: #381462;
$custom-light: #73568f;
$custom-dark: #000000;
JSON
{
  "hex": "#381462",
  "rgb": {
    "r": 56,
    "g": 20,
    "b": 98
  },
  "hsl": {
    "h": 267.692,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29673,
    "c": 0.12797,
    "h": 299.4
  },
  "luminance": 0.02223
}

Semantic roles & 50–950 ramp

primary
#381462
secondary
#6D9938
accent
#E93F9A
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #381462

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

Preview Lab → · Contrast checker → · Palette generator →

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