#38167E#38167E

#38167E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.159 H 289.2°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#38167E
RGBrgb(56, 22, 126)
HSLhsl(260, 70%, 29%)
HSVhsv(260, 83%, 49%)
CMYKcmyk(55.6%, 82.5%, 0%, 50.6%)
CIE-LABlab(19.72, 41.53, -52.10)
CIE-LCHlch(19.72, 66.62, 308.56°)
OKLaboklab(32.69% 0.0523 -0.1498)
OKLCHoklch(32.69% 0.159 289.2)
XYZxyz(5.6826, 2.9207, 19.9989)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38167E #5C7E16
analogous
#16287E #38167E #6C167E
triadic
#38167E #7E3816 #167E38
tetradic
#38167E #7E1628 #5C7E16 #167E6C
square
#38167E #7E1628 #5C7E16 #167E6C
split-complementary
#38167E #7E6C16 #287E16
monochromatic
#0C051A #210D4A #38167E #4F1FB2 #6A33DB

Accessibility & contrast

On white

13.26
#38167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38167E
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38167E#FFFFFF#000000##FFFFFF
##38167E1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#1C354A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #38167e;
/* rgb */ color: rgb(56, 22, 126);
/* oklch */ color: oklch(32.7% 0.159 289.2);
Tailwind
colors: {
  custom: {
    50: '#7858a4',
    500: '#38167e',
    950: '#000000',
  },
}
SCSS
$custom: #38167e;
$custom-light: #7858a4;
$custom-dark: #000000;
JSON
{
  "hex": "#38167e",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 259.615,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3269,
    "c": 0.1587,
    "h": 289.2
  },
  "luminance": 0.02921
}

Semantic roles & 50–950 ramp

primary
#38167E
secondary
#8CB33D
accent
#ED3BB3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #38167E

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

Preview Lab → · Contrast checker → · Palette generator →

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