#381865#381865

#381865 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.127 H 297.2°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#381865
RGBrgb(56, 24, 101)
HSLhsl(265, 62%, 25%)
HSVhsv(265, 76%, 40%)
CMYKcmyk(44.6%, 76.2%, 0%, 60.4%)
CIE-LABlab(17.62, 33.35, -39.38)
CIE-LCHlch(17.62, 51.61, 310.26°)
OKLaboklab(30.46% 0.0579 -0.1126)
OKLCHoklch(30.46% 0.127 297.2)
XYZxyz(4.3059, 2.4335, 12.5523)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381865 #456518
analogous
#181F65 #381865 #5F1865
triadic
#381865 #653818 #186538
tetradic
#381865 #65181F #456518 #18655F
square
#381865 #65181F #456518 #18655F
split-complementary
#381865 #655F18 #1F6518
monochromatic
#0E0619 #1D0C34 #381865 #532496 #6F30C8

Accessibility & contrast

On white

14.12
#381865 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#381865 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381865
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381865#FFFFFF#000000##FFFFFF
##3818651.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B67
Deuteranopia (green-blind)
#002A63
Tritanopia (blue-blind)
#2C2B3D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #381865;
/* rgb */ color: rgb(56, 24, 101);
/* oklch */ color: oklch(30.5% 0.127 297.2);
Tailwind
colors: {
  custom: {
    50: '#735892',
    500: '#381865',
    950: '#000000',
  },
}
SCSS
$custom: #381865;
$custom-light: #735892;
$custom-dark: #000000;
JSON
{
  "hex": "#381865",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 101
  },
  "hsl": {
    "h": 264.935,
    "s": 61.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.30464,
    "c": 0.12661,
    "h": 297.2
  },
  "luminance": 0.02434
}

Semantic roles & 50–950 ramp

primary
#381865
secondary
#749B3E
accent
#E543A2
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #381865

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

Preview Lab → · Contrast checker → · Palette generator →

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