#38145D#38145D

#38145D is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.122 H 301.6°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#38145D
RGBrgb(56, 20, 93)
HSLhsl(270, 65%, 22%)
HSVhsv(270, 78%, 36%)
CMYKcmyk(39.8%, 78.5%, 0%, 63.5%)
CIE-LABlab(16.16, 33.18, -36.44)
CIE-LCHlch(16.16, 49.28, 312.32°)
OKLaboklab(29.21% 0.064 -0.1039)
OKLCHoklch(29.21% 0.122 301.6)
XYZxyz(3.8563, 2.1314, 10.5620)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38145D #395D14
analogous
#14155D #38145D #5D145D
triadic
#38145D #5D3814 #145D38
tetradic
#38145D #5D1415 #395D14 #145D5D
square
#38145D #5D1415 #395D14 #145D5D
split-complementary
#38145D #5D5D14 #155D14
monochromatic
#0F0519 #1A092B #38145D #561F8F #752AC2

Accessibility & contrast

On white

14.72
#38145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#38145D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38145D
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38145D#FFFFFF#000000##FFFFFF
##38145D1.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#00285C
Tritanopia (blue-blind)
#302637
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #38145d;
/* rgb */ color: rgb(56, 20, 93);
/* oklch */ color: oklch(29.2% 0.122 301.6);
Tailwind
colors: {
  custom: {
    50: '#73558c',
    500: '#38145d',
    950: '#000000',
  },
}
SCSS
$custom: #38145d;
$custom-light: #73558c;
$custom-dark: #000000;
JSON
{
  "hex": "#38145d",
  "rgb": {
    "r": 56,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 269.589,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29212,
    "c": 0.12205,
    "h": 301.6
  },
  "luminance": 0.02131
}

Semantic roles & 50–950 ramp

primary
#38145D
secondary
#679538
accent
#E84095
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38145D

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

Preview Lab → · Contrast checker → · Palette generator →

#38145D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva