#38247C#38247C

#38247C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.3% C 0.141 H 286.9°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#38247C
RGBrgb(56, 36, 124)
HSLhsl(254, 55%, 31%)
HSVhsv(254, 71%, 49%)
CMYKcmyk(54.8%, 71%, 0%, 51.4%)
CIE-LABlab(22.15, 33.52, -46.84)
CIE-LCHlch(22.15, 57.60, 305.59°)
OKLaboklab(34.34% 0.0409 -0.1346)
OKLCHoklch(34.34% 0.141 286.9)
XYZxyz(5.8988, 3.5574, 19.4407)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38247C #687C24
analogous
#243C7C #38247C #64247C
triadic
#38247C #7C3824 #247C38
tetradic
#38247C #7C243C #687C24 #247C64
square
#38247C #7C243C #687C24 #247C64
split-complementary
#38247C #7C6424 #3C7C24
monochromatic
#0D081D #23164D #38247C #4D32AB #6B4FCC

Accessibility & contrast

On white

12.27
#38247C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#38247C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38247C
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38247C#FFFFFF#000000##FFFFFF
##38247C1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#1D3B4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #38247c;
/* rgb */ color: rgb(56, 36, 124);
/* oklch */ color: oklch(34.3% 0.141 286.9);
Tailwind
colors: {
  custom: {
    50: '#7660a3',
    500: '#38247c',
    950: '#000000',
  },
}
SCSS
$custom: #38247c;
$custom-light: #7660a3;
$custom-dark: #000000;
JSON
{
  "hex": "#38247c",
  "rgb": {
    "r": 56,
    "g": 36,
    "b": 124
  },
  "hsl": {
    "h": 253.636,
    "s": 55,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34343,
    "c": 0.14064,
    "h": 286.9
  },
  "luminance": 0.03558
}

Semantic roles & 50–950 ramp

primary
#38247C
secondary
#98AE4D
accent
#DE49BD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #38247C

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

Preview Lab → · Contrast checker → · Palette generator →

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