#38167B#38167B

#38167B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.155 H 290.1°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#38167B
RGBrgb(56, 22, 123)
HSLhsl(260, 70%, 28%)
HSVhsv(260, 82%, 48%)
CMYKcmyk(54.5%, 82.1%, 0%, 51.8%)
CIE-LABlab(19.41, 40.67, -50.70)
CIE-LCHlch(19.41, 65.00, 308.74°)
OKLaboklab(32.38% 0.0533 -0.1458)
OKLCHoklch(32.38% 0.155 290.1)
XYZxyz(5.4919, 2.8444, 18.9947)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38167B #597B16
analogous
#16267B #38167B #6A167B
triadic
#38167B #7B3816 #167B38
tetradic
#38167B #7B1626 #597B16 #167B6A
square
#38167B #7B1626 #597B16 #167B6A
split-complementary
#38167B #7B6A16 #267B16
monochromatic
#0C051A #200D47 #38167B #501FAF #6A31DA

Accessibility & contrast

On white

13.38
#38167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#38167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38167B
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38167B#FFFFFF#000000##FFFFFF
##38167B1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#1F3349
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #38167b;
/* rgb */ color: rgb(56, 22, 123);
/* oklch */ color: oklch(32.4% 0.155 290.1);
Tailwind
colors: {
  custom: {
    50: '#7758a2',
    500: '#38167b',
    950: '#000000',
  },
}
SCSS
$custom: #38167b;
$custom-light: #7758a2;
$custom-dark: #000000;
JSON
{
  "hex": "#38167b",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 260.198,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32378,
    "c": 0.15521,
    "h": 290.1
  },
  "luminance": 0.02845
}

Semantic roles & 50–950 ramp

primary
#38167B
secondary
#89B03D
accent
#EC3BB1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #38167B

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

Preview Lab → · Contrast checker → · Palette generator →

#38167B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva