#381273#381273

#381273 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.150 H 293.2°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#381273
RGBrgb(56, 18, 115)
HSLhsl(264, 73%, 26%)
HSVhsv(264, 84%, 45%)
CMYKcmyk(51.3%, 84.3%, 0%, 54.9%)
CIE-LABlab(17.97, 40.19, -47.93)
CIE-LCHlch(17.97, 62.55, 309.98°)
OKLaboklab(31.13% 0.059 -0.1376)
OKLCHoklch(31.13% 0.15 293.2)
XYZxyz(4.9408, 2.5110, 16.4407)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381273 #4D7312
analogous
#121C73 #381273 #681273
triadic
#381273 #733812 #127338
tetradic
#381273 #73121C #4D7312 #127368
square
#381273 #73121C #4D7312 #127368
split-complementary
#381273 #736812 #1C7312
monochromatic
#0D041A #1E0A3E #381273 #521AA8 #6C23DD

Accessibility & contrast

On white

13.98
#381273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381273
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381273#FFFFFF#000000##FFFFFF
##3812731.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#252E43
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381273;
/* rgb */ color: rgb(56, 18, 115);
/* oklch */ color: oklch(31.1% 0.150 293.2);
Tailwind
colors: {
  custom: {
    50: '#76569c',
    500: '#381273',
    950: '#000000',
  },
}
SCSS
$custom: #381273;
$custom-light: #76569c;
$custom-dark: #000000;
JSON
{
  "hex": "#381273",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 263.505,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31128,
    "c": 0.14976,
    "h": 293.2
  },
  "luminance": 0.02511
}

Semantic roles & 50–950 ramp

primary
#381273
secondary
#7DAA37
accent
#F038A8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381273

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

Preview Lab → · Contrast checker → · Palette generator →

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