#38247E#38247E

#38247E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.143 H 286.4°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#38247E
RGBrgb(56, 36, 126)
HSLhsl(253, 56%, 32%)
HSVhsv(253, 71%, 49%)
CMYKcmyk(55.6%, 71.4%, 0%, 50.6%)
CIE-LABlab(22.33, 34.15, -47.81)
CIE-LCHlch(22.33, 58.76, 305.54°)
OKLaboklab(34.53% 0.0405 -0.1374)
OKLCHoklch(34.53% 0.143 286.4)
XYZxyz(6.0265, 3.6085, 20.1136)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38247E #6A7E24
analogous
#243D7E #38247E #65247E
triadic
#38247E #7E3824 #247E38
tetradic
#38247E #7E243D #6A7E24 #247E65
square
#38247E #7E243D #6A7E24 #247E65
split-complementary
#38247E #7E6524 #3D7E24
monochromatic
#0E091F #23164E #38247E #4D32AE #6B50CD

Accessibility & contrast

On white

12.20
#38247E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#38247E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38247E
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38247E#FFFFFF#000000##FFFFFF
##38247E1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#1B3B4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #38247e;
/* rgb */ color: rgb(56, 36, 126);
/* oklch */ color: oklch(34.5% 0.143 286.4);
Tailwind
colors: {
  custom: {
    50: '#7660a4',
    500: '#38247e',
    950: '#000000',
  },
}
SCSS
$custom: #38247e;
$custom-light: #7660a4;
$custom-dark: #000000;
JSON
{
  "hex": "#38247e",
  "rgb": {
    "r": 56,
    "g": 36,
    "b": 126
  },
  "hsl": {
    "h": 253.333,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34529,
    "c": 0.14327,
    "h": 286.4
  },
  "luminance": 0.03609
}

Semantic roles & 50–950 ramp

primary
#38247E
secondary
#9AB04E
accent
#DF49BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #38247E

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

Preview Lab → · Contrast checker → · Palette generator →

#38247E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva