#381265#381265

#381265 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.134 H 298.5°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#381265
RGBrgb(56, 18, 101)
HSLhsl(267, 70%, 23%)
HSVhsv(267, 82%, 40%)
CMYKcmyk(44.6%, 82.2%, 0%, 60.4%)
CIE-LABlab(16.57, 36.33, -41.09)
CIE-LCHlch(16.57, 54.85, 311.48°)
OKLaboklab(29.73% 0.0638 -0.1176)
OKLCHoklch(29.73% 0.134 298.5)
XYZxyz(4.1956, 2.2129, 12.5155)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381265 #3F6512
analogous
#121565 #381265 #611265
triadic
#381265 #653812 #126538
tetradic
#381265 #651215 #3F6512 #126561
square
#381265 #651215 #3F6512 #126561
split-complementary
#381265 #656112 #156512
monochromatic
#0E051A #1B0931 #381265 #551B99 #7225CD

Accessibility & contrast

On white

14.56
#381265 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#381265 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381265
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381265#FFFFFF#000000##FFFFFF
##3812651.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002863
Tritanopia (blue-blind)
#2D293B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #381265;
/* rgb */ color: rgb(56, 18, 101);
/* oklch */ color: oklch(29.7% 0.134 298.5);
Tailwind
colors: {
  custom: {
    50: '#745592',
    500: '#381265',
    950: '#000000',
  },
}
SCSS
$custom: #381265;
$custom-light: #745592;
$custom-dark: #000000;
JSON
{
  "hex": "#381265",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 101
  },
  "hsl": {
    "h": 267.47,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29726,
    "c": 0.13376,
    "h": 298.5
  },
  "luminance": 0.02213
}

Semantic roles & 50–950 ramp

primary
#381265
secondary
#6E9D36
accent
#ED3B9B
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #381265

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

Preview Lab → · Contrast checker → · Palette generator →

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