#381275#381275

#381275 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.152 H 292.6°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#381275
RGBrgb(56, 18, 117)
HSLhsl(263, 73%, 26%)
HSVhsv(263, 85%, 46%)
CMYKcmyk(52.1%, 84.6%, 0%, 54.1%)
CIE-LABlab(18.18, 40.75, -48.88)
CIE-LCHlch(18.18, 63.64, 309.81°)
OKLaboklab(31.34% 0.0583 -0.1404)
OKLCHoklch(31.34% 0.152 292.6)
XYZxyz(5.0572, 2.5575, 17.0534)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381275 #4F7512
analogous
#121E75 #381275 #6A1275
triadic
#381275 #753812 #127538
tetradic
#381275 #75121E #4F7512 #12756A
square
#381275 #75121E #4F7512 #12756A
split-complementary
#381275 #756A12 #1E7512
monochromatic
#0D041B #1F0A40 #381275 #511AAA #6B24DD

Accessibility & contrast

On white

13.89
#381275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381275
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381275#FFFFFF#000000##FFFFFF
##3812751.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381275;
/* rgb */ color: rgb(56, 18, 117);
/* oklch */ color: oklch(31.3% 0.152 292.6);
Tailwind
colors: {
  custom: {
    50: '#76569e',
    500: '#381275',
    950: '#000000',
  },
}
SCSS
$custom: #381275;
$custom-light: #76569e;
$custom-dark: #000000;
JSON
{
  "hex": "#381275",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 263.03,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31335,
    "c": 0.15204,
    "h": 292.6
  },
  "luminance": 0.02558
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #381275

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

Preview Lab → · Contrast checker → · Palette generator →

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