#38277A#38277A

#38277A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.6% C 0.134 H 286.5°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#38277A
RGBrgb(56, 39, 122)
HSLhsl(252, 52%, 32%)
HSVhsv(252, 68%, 48%)
CMYKcmyk(54.1%, 68%, 0%, 52.2%)
CIE-LABlab(22.64, 31.06, -44.77)
CIE-LCHlch(22.64, 54.49, 304.75°)
OKLaboklab(34.64% 0.0382 -0.1285)
OKLCHoklch(34.64% 0.134 286.5)
XYZxyz(5.8682, 3.6966, 18.8129)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38277A #697A27
analogous
#27407A #38277A #62277A
triadic
#38277A #7A3827 #277A38
tetradic
#38277A #7A2740 #697A27 #277A62
square
#38277A #7A2740 #697A27 #277A62
split-complementary
#38277A #7A6227 #407A27
monochromatic
#0D091D #23184C #38277A #4D36A8 #6B53C8

Accessibility & contrast

On white

12.07
#38277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#38277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38277A
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38277A#FFFFFF#000000##FFFFFF
##38277A1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#1E3C4D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #38277a;
/* rgb */ color: rgb(56, 39, 122);
/* oklch */ color: oklch(34.6% 0.134 286.5);
Tailwind
colors: {
  custom: {
    50: '#7562a1',
    500: '#38277a',
    950: '#000000',
  },
}
SCSS
$custom: #38277a;
$custom-light: #7562a1;
$custom-dark: #000000;
JSON
{
  "hex": "#38277a",
  "rgb": {
    "r": 56,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 252.289,
    "s": 51.553,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34641,
    "c": 0.13402,
    "h": 286.5
  },
  "luminance": 0.03697
}

Semantic roles & 50–950 ramp

primary
#38277A
secondary
#99AC51
accent
#DB4DBE
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#09050F
muted
#7B797F

Preview Lab

Preview with #38277A

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

Preview Lab → · Contrast checker → · Palette generator →

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