#38174D#38174D

#38174D is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.098 H 309.7°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#38174D
RGBrgb(56, 23, 77)
HSLhsl(277, 54%, 20%)
HSVhsv(277, 70%, 30%)
CMYKcmyk(27.3%, 70.1%, 0%, 69.8%)
CIE-LABlab(15.43, 27.25, -26.80)
CIE-LCHlch(15.43, 38.22, 315.48°)
OKLaboklab(28.28% 0.0627 -0.0756)
OKLCHoklch(28.28% 0.098 309.7)
XYZxyz(3.2766, 1.9894, 7.2311)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38174D #2C4D17
analogous
#1D174D #38174D #4D1747
triadic
#38174D #4D3817 #174D38
tetradic
#38174D #4D1D17 #2C4D17 #17474D
square
#38174D #4D1D17 #2C4D17 #17474D
split-complementary
#38174D #474D17 #174D1D
monochromatic
#110718 #16091E #38174D #5A257C #7D33AB

Accessibility & contrast

On white

15.02
#38174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#38174D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38174D
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38174D#FFFFFF#000000##FFFFFF
##38174D1.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00254F
Deuteranopia (green-blind)
#10274C
Tritanopia (blue-blind)
#35222F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #38174d;
/* rgb */ color: rgb(56, 23, 77);
/* oklch */ color: oklch(28.3% 0.098 309.7);
Tailwind
colors: {
  custom: {
    50: '#71567f',
    500: '#38174d',
    950: '#000000',
  },
}
SCSS
$custom: #38174d;
$custom-light: #71567f;
$custom-dark: #000000;
JSON
{
  "hex": "#38174d",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 276.667,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28276,
    "c": 0.09822,
    "h": 309.7
  },
  "luminance": 0.01989
}

Semantic roles & 50–950 ramp

primary
#38174D
secondary
#58843C
accent
#DD4A84
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #38174D

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

Preview Lab → · Contrast checker → · Palette generator →

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