#381263#381263

#381263 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.131 H 299.3°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#381263
RGBrgb(56, 18, 99)
HSLhsl(268, 69%, 23%)
HSVhsv(268, 82%, 39%)
CMYKcmyk(43.4%, 81.8%, 0%, 61.2%)
CIE-LABlab(16.38, 35.79, -40.08)
CIE-LCHlch(16.38, 53.73, 311.76°)
OKLaboklab(29.53% 0.0644 -0.1146)
OKLCHoklch(29.53% 0.131 299.3)
XYZxyz(4.0988, 2.1742, 12.0057)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381263 #3D6312
analogous
#121463 #381263 #601263
triadic
#381263 #633812 #126338
tetradic
#381263 #631214 #3D6312 #126360
square
#381263 #631214 #3D6312 #126360
split-complementary
#381263 #636012 #146312
monochromatic
#0F051A #1B092F #381263 #551B97 #7325CB

Accessibility & contrast

On white

14.64
#381263 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#381263 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381263
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381263#FFFFFF#000000##FFFFFF
##3812631.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381263;
/* rgb */ color: rgb(56, 18, 99);
/* oklch */ color: oklch(29.5% 0.131 299.3);
Tailwind
colors: {
  custom: {
    50: '#745590',
    500: '#381263',
    950: '#000000',
  },
}
SCSS
$custom: #381263;
$custom-light: #745590;
$custom-dark: #000000;
JSON
{
  "hex": "#381263",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 99
  },
  "hsl": {
    "h": 268.148,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.29534,
    "c": 0.13146,
    "h": 299.3
  },
  "luminance": 0.02174
}

Semantic roles & 50–950 ramp

primary
#381263
secondary
#6C9B36
accent
#EC3C99
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030D
muted
#7B787D

Preview Lab

Preview with #381263

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

Preview Lab → · Contrast checker → · Palette generator →

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