#381274#381274

#381274 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.151 H 292.9°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#381274
RGBrgb(56, 18, 116)
HSLhsl(263, 73%, 26%)
HSVhsv(263, 84%, 45%)
CMYKcmyk(51.7%, 84.5%, 0%, 54.5%)
CIE-LABlab(18.07, 40.47, -48.41)
CIE-LCHlch(18.07, 63.10, 309.89°)
OKLaboklab(31.23% 0.0587 -0.139)
OKLCHoklch(31.23% 0.151 292.9)
XYZxyz(4.9987, 2.5341, 16.7454)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381274 #4E7412
analogous
#121D74 #381274 #691274
triadic
#381274 #743812 #127438
tetradic
#381274 #74121D #4E7412 #127469
square
#381274 #74121D #4E7412 #127469
split-complementary
#381274 #746912 #1D7412
monochromatic
#0D041A #1E0A3F #381274 #521AA9 #6B23DD

Accessibility & contrast

On white

13.94
#381274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#381274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381274
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381274#FFFFFF#000000##FFFFFF
##3812741.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002A72
Tritanopia (blue-blind)
#242F44
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381274;
/* rgb */ color: rgb(56, 18, 116);
/* oklch */ color: oklch(31.2% 0.151 292.9);
Tailwind
colors: {
  custom: {
    50: '#76569d',
    500: '#381274',
    950: '#000000',
  },
}
SCSS
$custom: #381274;
$custom-light: #76569d;
$custom-dark: #000000;
JSON
{
  "hex": "#381274",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 263.265,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31231,
    "c": 0.1509,
    "h": 292.9
  },
  "luminance": 0.02534
}

Semantic roles & 50–950 ramp

primary
#381274
secondary
#7EAB37
accent
#F038A9
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381274

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

Preview Lab → · Contrast checker → · Palette generator →

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