#38145E#38145E

#38145E is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.123 H 301.2°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#38145E
RGBrgb(56, 20, 94)
HSLhsl(269, 65%, 22%)
HSVhsv(269, 79%, 37%)
CMYKcmyk(40.4%, 78.7%, 0%, 63.1%)
CIE-LABlab(16.25, 33.45, -36.96)
CIE-LCHlch(16.25, 49.86, 312.15°)
OKLaboklab(29.3% 0.0638 -0.1055)
OKLCHoklch(29.3% 0.123 301.2)
XYZxyz(3.9009, 2.1492, 10.7968)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38145E #3A5E14
analogous
#14155E #38145E #5D145E
triadic
#38145E #5E3814 #145E38
tetradic
#38145E #5E1415 #3A5E14 #145E5D
square
#38145E #5E1415 #3A5E14 #145E5D
split-complementary
#38145E #5E5D14 #155E14
monochromatic
#0F0519 #1A092C #38145E #561F90 #7429C3

Accessibility & contrast

On white

14.69
#38145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38145E
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38145E#FFFFFF#000000##FFFFFF
##38145E1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002860
Deuteranopia (green-blind)
#00285D
Tritanopia (blue-blind)
#302738
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #38145e;
/* rgb */ color: rgb(56, 20, 94);
/* oklch */ color: oklch(29.3% 0.123 301.2);
Tailwind
colors: {
  custom: {
    50: '#73558c',
    500: '#38145e',
    950: '#000000',
  },
}
SCSS
$custom: #38145e;
$custom-light: #73558c;
$custom-dark: #000000;
JSON
{
  "hex": "#38145e",
  "rgb": {
    "r": 56,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 269.189,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29303,
    "c": 0.12324,
    "h": 301.2
  },
  "luminance": 0.02149
}

Semantic roles & 50–950 ramp

primary
#38145E
secondary
#689638
accent
#E84096
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38145E

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

Preview Lab → · Contrast checker → · Palette generator →

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