#381255#381255

#381255 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.2% C 0.115 H 306.1°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#381255
RGBrgb(56, 18, 85)
HSLhsl(274, 65%, 20%)
HSVhsv(274, 79%, 33%)
CMYKcmyk(34.1%, 78.8%, 0%, 66.7%)
CIE-LABlab(15.11, 32.03, -32.77)
CIE-LCHlch(15.11, 45.82, 314.35°)
OKLaboklab(28.25% 0.0679 -0.0931)
OKLCHoklch(28.25% 0.115 306.1)
XYZxyz(3.4865, 1.9293, 8.7813)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381255 #2F5512
analogous
#161255 #381255 #551250
triadic
#381255 #553812 #125538
tetradic
#381255 #551612 #2F5512 #125055
square
#381255 #551612 #2F5512 #125055
split-complementary
#381255 #505512 #125516
monochromatic
#110519 #170722 #381255 #591D88 #7B27BA

Accessibility & contrast

On white

15.15
#381255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#381255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381255
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381255#FFFFFF#000000##FFFFFF
##3812551.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002557
Deuteranopia (green-blind)
#002654
Tritanopia (blue-blind)
#332232
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #381255;
/* rgb */ color: rgb(56, 18, 85);
/* oklch */ color: oklch(28.2% 0.115 306.1);
Tailwind
colors: {
  custom: {
    50: '#725485',
    500: '#381255',
    950: '#000000',
  },
}
SCSS
$custom: #381255;
$custom-light: #725485;
$custom-dark: #000000;
JSON
{
  "hex": "#381255",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 274.03,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.2825,
    "c": 0.11526,
    "h": 306.1
  },
  "luminance": 0.01929
}

Semantic roles & 50–950 ramp

primary
#381255
secondary
#5B8E35
accent
#E84089
background
#F7F5F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381255

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

Preview Lab → · Contrast checker → · Palette generator →

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