#38167D#38167D

#38167D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.158 H 289.5°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#38167D
RGBrgb(56, 22, 125)
HSLhsl(260, 70%, 29%)
HSVhsv(260, 82%, 49%)
CMYKcmyk(55.2%, 82.4%, 0%, 51%)
CIE-LABlab(19.62, 41.25, -51.63)
CIE-LCHlch(19.62, 66.08, 308.62°)
OKLaboklab(32.59% 0.0526 -0.1485)
OKLCHoklch(32.59% 0.158 289.5)
XYZxyz(5.6184, 2.8950, 19.6608)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38167D #5B7D16
analogous
#16287D #38167D #6C167D
triadic
#38167D #7D3816 #167D38
tetradic
#38167D #7D1628 #5B7D16 #167D6C
square
#38167D #7D1628 #5B7D16 #167D6C
split-complementary
#38167D #7D6C16 #287D16
monochromatic
#0C051A #210D49 #38167D #4F1FB1 #6A32DB

Accessibility & contrast

On white

13.30
#38167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#38167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38167D
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38167D#FFFFFF#000000##FFFFFF
##38167D1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#1D344A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #38167d;
/* rgb */ color: rgb(56, 22, 125);
/* oklch */ color: oklch(32.6% 0.158 289.5);
Tailwind
colors: {
  custom: {
    50: '#7758a4',
    500: '#38167d',
    950: '#000000',
  },
}
SCSS
$custom: #38167d;
$custom-light: #7758a4;
$custom-dark: #000000;
JSON
{
  "hex": "#38167d",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 259.806,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32586,
    "c": 0.15754,
    "h": 289.5
  },
  "luminance": 0.02895
}

Semantic roles & 50–950 ramp

primary
#38167D
secondary
#8BB23D
accent
#ED3BB2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #38167D

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

Preview Lab → · Contrast checker → · Palette generator →

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