#38247A#38247A

#38247A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.138 H 287.4°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#38247A
RGBrgb(56, 36, 122)
HSLhsl(254, 54%, 31%)
HSVhsv(254, 70%, 48%)
CMYKcmyk(54.1%, 70.5%, 0%, 52.2%)
CIE-LABlab(21.97, 32.88, -45.86)
CIE-LCHlch(21.97, 56.43, 305.64°)
OKLaboklab(34.16% 0.0413 -0.1317)
OKLCHoklch(34.16% 0.138 287.4)
XYZxyz(5.7736, 3.5074, 18.7813)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38247A #667A24
analogous
#243B7A #38247A #63247A
triadic
#38247A #7A3824 #247A38
tetradic
#38247A #7A243B #667A24 #247A63
square
#38247A #7A243B #667A24 #247A63
split-complementary
#38247A #7A6324 #3B7A24
monochromatic
#0D081B #22164B #38247A #4E32A9 #6B4ECB

Accessibility & contrast

On white

12.34
#38247A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#38247A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38247A
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38247A#FFFFFF#000000##FFFFFF
##38247A1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#1F3A4C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #38247a;
/* rgb */ color: rgb(56, 36, 122);
/* oklch */ color: oklch(34.2% 0.138 287.4);
Tailwind
colors: {
  custom: {
    50: '#7660a1',
    500: '#38247a',
    950: '#000000',
  },
}
SCSS
$custom: #38247a;
$custom-light: #7660a1;
$custom-dark: #000000;
JSON
{
  "hex": "#38247a",
  "rgb": {
    "r": 56,
    "g": 36,
    "b": 122
  },
  "hsl": {
    "h": 253.953,
    "s": 54.43,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34158,
    "c": 0.138,
    "h": 287.4
  },
  "luminance": 0.03508
}

Semantic roles & 50–950 ramp

primary
#38247A
secondary
#96AC4D
accent
#DE4ABB
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09050F
muted
#7B797F

Preview Lab

Preview with #38247A

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

Preview Lab → · Contrast checker → · Palette generator →

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