#38187A#38187A

#38187A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.152 H 290.0°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#38187A
RGBrgb(56, 24, 122)
HSLhsl(260, 67%, 29%)
HSVhsv(260, 80%, 48%)
CMYKcmyk(54.1%, 80.3%, 0%, 52.2%)
CIE-LABlab(19.63, 39.44, -49.69)
CIE-LCHlch(19.63, 63.44, 308.44°)
OKLaboklab(32.5% 0.0521 -0.1428)
OKLCHoklch(32.5% 0.152 290)
XYZxyz(5.4694, 2.8989, 18.6799)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38187A #5A7A18
analogous
#18297A #38187A #69187A
triadic
#38187A #7A3818 #187A38
tetradic
#38187A #7A1829 #5A7A18 #187A69
square
#38187A #7A1829 #5A7A18 #187A69
split-complementary
#38187A #7A6918 #297A18
monochromatic
#0C051A #210E47 #38187A #4F22AD #6A35D7

Accessibility & contrast

On white

13.29
#38187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#38187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38187A
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38187A#FFFFFF#000000##FFFFFF
##38187A1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#203448
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #38187a;
/* rgb */ color: rgb(56, 24, 122);
/* oklch */ color: oklch(32.5% 0.152 290.0);
Tailwind
colors: {
  custom: {
    50: '#7759a1',
    500: '#38187a',
    950: '#000000',
  },
}
SCSS
$custom: #38187a;
$custom-light: #7759a1;
$custom-dark: #000000;
JSON
{
  "hex": "#38187a",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 259.592,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32503,
    "c": 0.15204,
    "h": 290
  },
  "luminance": 0.02899
}

Semantic roles & 50–950 ramp

primary
#38187A
secondary
#8AAF3F
accent
#EA3EB2
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #38187A

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

Preview Lab → · Contrast checker → · Palette generator →

#38187A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva