#38175D#38175D

#38175D is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.6% C 0.118 H 300.9°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#38175D
RGBrgb(56, 23, 93)
HSLhsl(268, 60%, 23%)
HSVhsv(268, 75%, 36%)
CMYKcmyk(39.8%, 75.3%, 0%, 63.5%)
CIE-LABlab(16.72, 31.62, -35.54)
CIE-LCHlch(16.72, 47.57, 311.66°)
OKLaboklab(29.61% 0.0607 -0.1013)
OKLCHoklch(29.61% 0.118 300.9)
XYZxyz(3.9126, 2.2438, 10.5808)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38175D #3C5D17
analogous
#17195D #38175D #5B175D
triadic
#38175D #5D3817 #175D38
tetradic
#38175D #5D1719 #3C5D17 #175D5B
square
#38175D #5D1719 #3C5D17 #175D5B
split-complementary
#38175D #5D5B17 #195D17
monochromatic
#0F0619 #1A0B2C #38175D #56238E #732FBF

Accessibility & contrast

On white

14.49
#38175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#38175D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38175D
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38175D#FFFFFF#000000##FFFFFF
##38175D1.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#00295C
Tritanopia (blue-blind)
#302838
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #38175d;
/* rgb */ color: rgb(56, 23, 93);
/* oklch */ color: oklch(29.6% 0.118 300.9);
Tailwind
colors: {
  custom: {
    50: '#73578b',
    500: '#38175d',
    950: '#000000',
  },
}
SCSS
$custom: #38175d;
$custom-light: #73578b;
$custom-dark: #000000;
JSON
{
  "hex": "#38175d",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 268.286,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29606,
    "c": 0.11807,
    "h": 300.9
  },
  "luminance": 0.02244
}

Semantic roles & 50–950 ramp

primary
#38175D
secondary
#6A943C
accent
#E34498
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38175D

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

Preview Lab → · Contrast checker → · Palette generator →

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