#38178D#38178D

#38178D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.175 H 285.3°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#38178D
RGBrgb(56, 23, 141)
HSLhsl(257, 72%, 32%)
HSVhsv(257, 84%, 55%)
CMYKcmyk(60.3%, 83.7%, 0%, 44.7%)
CIE-LABlab(21.49, 45.39, -58.62)
CIE-LCHlch(21.49, 74.14, 307.75°)
OKLaboklab(34.39% 0.0463 -0.1689)
OKLCHoklch(34.39% 0.175 285.3)
XYZxyz(6.7435, 3.3762, 25.4905)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38178D #6C8D17
analogous
#17318D #38178D #73178D
triadic
#38178D #8D3817 #178D38
tetradic
#38178D #8D1731 #6C8D17 #178D73
square
#38178D #8D1731 #6C8D17 #178D73
split-complementary
#38178D #8D7317 #318D17
monochromatic
#0E0624 #230E58 #38178D #4D20C2 #6C3FE0

Accessibility & contrast

On white

12.53
#38178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#38178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38178D
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38178D#FFFFFF#000000##FFFFFF
##38178D1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#053B53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #38178d;
/* rgb */ color: rgb(56, 23, 141);
/* oklch */ color: oklch(34.4% 0.175 285.3);
Tailwind
colors: {
  custom: {
    50: '#7a5ab0',
    500: '#38178d',
    950: '#000000',
  },
}
SCSS
$custom: #38178d;
$custom-light: #7a5ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#38178d",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 256.78,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34395,
    "c": 0.17516,
    "h": 285.3
  },
  "luminance": 0.03377
}

Semantic roles & 50–950 ramp

primary
#38178D
secondary
#9CC040
accent
#EF39BC
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #38178D

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

Preview Lab → · Contrast checker → · Palette generator →

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