#38276A#38276A

#38276A is a dark, moderate violet. Relative luminance 0.033; OKLCH L 33.3% C 0.112 H 290.7°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#38276A
RGBrgb(56, 39, 106)
HSLhsl(255, 46%, 28%)
HSVhsv(255, 63%, 42%)
CMYKcmyk(47.2%, 63.2%, 0%, 58.4%)
CIE-LABlab(21.33, 25.91, -36.62)
CIE-LCHlch(21.33, 44.86, 305.28°)
OKLaboklab(33.27% 0.0396 -0.1045)
OKLCHoklch(33.27% 0.112 290.7)
XYZxyz(4.9572, 3.3322, 14.0149)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38276A #596A27
analogous
#27376A #38276A #59276A
triadic
#38276A #6A3827 #276A38
tetradic
#38276A #6A2737 #596A27 #276A59
square
#38276A #6A2737 #596A27 #276A59
split-complementary
#38276A #6A5927 #376A27
monochromatic
#0C0816 #20173D #38276A #503797 #6A4EBE

Accessibility & contrast

On white

12.60
#38276A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#38276A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38276A
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38276A#FFFFFF#000000##FFFFFF
##38276A1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346C
Deuteranopia (green-blind)
#003269
Tritanopia (blue-blind)
#293644
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #38276a;
/* rgb */ color: rgb(56, 39, 106);
/* oklch */ color: oklch(33.3% 0.112 290.7);
Tailwind
colors: {
  custom: {
    50: '#736295',
    500: '#38276a',
    950: '#000000',
  },
}
SCSS
$custom: #38276a;
$custom-light: #736295;
$custom-dark: #000000;
JSON
{
  "hex": "#38276a",
  "rgb": {
    "r": 56,
    "g": 39,
    "b": 106
  },
  "hsl": {
    "h": 255.224,
    "s": 46.207,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33272,
    "c": 0.11176,
    "h": 290.7
  },
  "luminance": 0.03332
}

Semantic roles & 50–950 ramp

primary
#38276A
secondary
#899D50
accent
#D652B4
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050D
muted
#7B797E

Preview Lab

Preview with #38276A

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

Preview Lab → · Contrast checker → · Palette generator →

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