#38278B#38278B

#38278B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.2% C 0.157 H 283.1°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#38278B
RGBrgb(56, 39, 139)
HSLhsl(250, 56%, 35%)
HSVhsv(250, 72%, 55%)
CMYKcmyk(59.7%, 71.9%, 0%, 45.5%)
CIE-LABlab(24.18, 36.55, -52.95)
CIE-LCHlch(24.18, 64.34, 304.61°)
OKLaboklab(36.22% 0.0354 -0.1525)
OKLCHoklch(36.22% 0.157 283.1)
XYZxyz(7.0152, 4.1554, 24.8535)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38278B #7A8B27
analogous
#27488B #38278B #6A278B
triadic
#38278B #8B3827 #278B38
tetradic
#38278B #8B2748 #7A8B27 #278B6A
square
#38278B #8B2748 #7A8B27 #278B6A
split-complementary
#38278B #8B6A27 #488B27
monochromatic
#110C2B #251A5B #38278B #4B34BB #6F5BD1

Accessibility & contrast

On white

11.47
#38278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#38278B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38278B
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38278B#FFFFFF#000000##FFFFFF
##38278B1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#064256
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #38278b;
/* rgb */ color: rgb(56, 39, 139);
/* oklch */ color: oklch(36.2% 0.157 283.1);
Tailwind
colors: {
  custom: {
    50: '#7963ae',
    500: '#38278b',
    950: '#000000',
  },
}
SCSS
$custom: #38278b;
$custom-light: #7963ae;
$custom-dark: #000000;
JSON
{
  "hex": "#38278b",
  "rgb": {
    "r": 56,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 250.2,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3622,
    "c": 0.15654,
    "h": 283.1
  },
  "luminance": 0.04156
}

Semantic roles & 50–950 ramp

primary
#38278B
secondary
#A6B658
accent
#DF48C6
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #38278B

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

Preview Lab → · Contrast checker → · Palette generator →

#38278B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva