#38277D#38277D

#38277D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 34.9% C 0.138 H 285.9°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#38277D
RGBrgb(56, 39, 125)
HSLhsl(252, 52%, 32%)
HSVhsv(252, 69%, 49%)
CMYKcmyk(55.2%, 68.8%, 0%, 51%)
CIE-LABlab(22.90, 32.03, -46.25)
CIE-LCHlch(22.90, 56.26, 304.70°)
OKLaboklab(34.91% 0.0378 -0.1328)
OKLCHoklch(34.91% 0.138 285.9)
XYZxyz(6.0570, 3.7721, 19.8070)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38277D #6C7D27
analogous
#27417D #38277D #63277D
triadic
#38277D #7D3827 #277D38
tetradic
#38277D #7D2741 #6C7D27 #277D63
square
#38277D #7D2741 #6C7D27 #277D63
split-complementary
#38277D #7D6327 #417D27
monochromatic
#0E0A20 #23184E #38277D #4D36AC #6C55CA

Accessibility & contrast

On white

11.97
#38277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#38277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38277D
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38277D#FFFFFF#000000##FFFFFF
##38277D1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#1C3D4E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #38277d;
/* rgb */ color: rgb(56, 39, 125);
/* oklch */ color: oklch(34.9% 0.138 285.9);
Tailwind
colors: {
  custom: {
    50: '#7662a3',
    500: '#38277d',
    950: '#000000',
  },
}
SCSS
$custom: #38277d;
$custom-light: #7662a3;
$custom-dark: #000000;
JSON
{
  "hex": "#38277d",
  "rgb": {
    "r": 56,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 251.86,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34911,
    "c": 0.13808,
    "h": 285.9
  },
  "luminance": 0.03772
}

Semantic roles & 50–950 ramp

primary
#38277D
secondary
#9CAF51
accent
#DC4CBF
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #38277D

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

Preview Lab → · Contrast checker → · Palette generator →

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