#38175B#38175B

#38175B is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.4% C 0.116 H 301.9°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#38175B
RGBrgb(56, 23, 91)
HSLhsl(269, 60%, 22%)
HSVhsv(269, 75%, 36%)
CMYKcmyk(38.5%, 74.7%, 0%, 64.3%)
CIE-LABlab(16.55, 31.06, -34.48)
CIE-LCHlch(16.55, 46.40, 312.01°)
OKLaboklab(29.43% 0.061 -0.0982)
OKLCHoklch(29.43% 0.116 301.9)
XYZxyz(3.8252, 2.2089, 10.1203)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38175B #3A5B17
analogous
#17185B #38175B #5A175B
triadic
#38175B #5B3817 #175B38
tetradic
#38175B #5B1718 #3A5B17 #175B5A
square
#38175B #5B1718 #3A5B17 #175B5A
split-complementary
#38175B #5B5A17 #185B17
monochromatic
#0F0618 #1A0B2A #38175B #56238C #7430BD

Accessibility & contrast

On white

14.57
#38175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#38175B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38175B
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38175B#FFFFFF#000000##FFFFFF
##38175B1.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#00295A
Tritanopia (blue-blind)
#312737
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #38175b;
/* rgb */ color: rgb(56, 23, 91);
/* oklch */ color: oklch(29.4% 0.116 301.9);
Tailwind
colors: {
  custom: {
    50: '#72578a',
    500: '#38175b',
    950: '#000000',
  },
}
SCSS
$custom: #38175b;
$custom-light: #72578a;
$custom-dark: #000000;
JSON
{
  "hex": "#38175b",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 269.118,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29431,
    "c": 0.11561,
    "h": 301.9
  },
  "luminance": 0.02209
}

Semantic roles & 50–950 ramp

primary
#38175B
secondary
#68923C
accent
#E34596
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38175B

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

Preview Lab → · Contrast checker → · Palette generator →

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