#38169E#38169E

#38169E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.195 H 282.0°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#38169E
RGBrgb(56, 22, 158)
HSLhsl(255, 76%, 35%)
HSVhsv(255, 86%, 62%)
CMYKcmyk(64.6%, 86.1%, 0%, 38%)
CIE-LABlab(23.28, 50.61, -66.16)
CIE-LCHlch(23.28, 83.30, 307.41°)
OKLaboklab(36.19% 0.0406 -0.1909)
OKLCHoklch(36.19% 0.195 282)
XYZxyz(8.0874, 3.8826, 32.6644)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38169E #7C9E16
analogous
#16389E #38169E #7C169E
triadic
#38169E #9E3816 #169E38
tetradic
#38169E #9E1638 #7C9E16 #169E7C
square
#38169E #9E1638 #7C9E16 #169E7C
split-complementary
#38169E #9E7C16 #389E16
monochromatic
#120733 #250F68 #38169E #4B1DD4 #7049E6

Accessibility & contrast

On white

11.82
#38169E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#38169E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38169E
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38169E#FFFFFF#000000##FFFFFF
##38169E1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#00425D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #38169e;
/* rgb */ color: rgb(56, 22, 158);
/* oklch */ color: oklch(36.2% 0.195 282.0);
Tailwind
colors: {
  custom: {
    50: '#7e5bbc',
    500: '#38169e',
    950: '#000000',
  },
}
SCSS
$custom: #38169e;
$custom-light: #7e5bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#38169e",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 158
  },
  "hsl": {
    "h": 255,
    "s": 75.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36188,
    "c": 0.19513,
    "h": 282
  },
  "luminance": 0.03883
}

Semantic roles & 50–950 ramp

primary
#38169E
secondary
#A7C749
accent
#F236C3
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #38169E

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

Preview Lab → · Contrast checker → · Palette generator →

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