#38247B#38247B

#38247B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.139 H 287.1°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#38247B
RGBrgb(56, 36, 123)
HSLhsl(254, 55%, 31%)
HSVhsv(254, 71%, 48%)
CMYKcmyk(54.5%, 70.7%, 0%, 51.8%)
CIE-LABlab(22.06, 33.20, -46.35)
CIE-LCHlch(22.06, 57.02, 305.61°)
OKLaboklab(34.25% 0.0411 -0.1331)
OKLCHoklch(34.25% 0.139 287.1)
XYZxyz(5.8359, 3.5323, 19.1093)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38247B #677B24
analogous
#243B7B #38247B #63247B
triadic
#38247B #7B3824 #247B38
tetradic
#38247B #7B243B #677B24 #247B63
square
#38247B #7B243B #677B24 #247B63
split-complementary
#38247B #7B6324 #3B7B24
monochromatic
#0D081C #22164C #38247B #4E32AA #6B4ECB

Accessibility & contrast

On white

12.31
#38247B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38247B
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38247B#FFFFFF#000000##FFFFFF
##38247B1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#1E3A4C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #38247b;
/* rgb */ color: rgb(56, 36, 123);
/* oklch */ color: oklch(34.3% 0.139 287.1);
Tailwind
colors: {
  custom: {
    50: '#7660a2',
    500: '#38247b',
    950: '#000000',
  },
}
SCSS
$custom: #38247b;
$custom-light: #7660a2;
$custom-dark: #000000;
JSON
{
  "hex": "#38247b",
  "rgb": {
    "r": 56,
    "g": 36,
    "b": 123
  },
  "hsl": {
    "h": 253.793,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3425,
    "c": 0.13932,
    "h": 287.1
  },
  "luminance": 0.03533
}

Semantic roles & 50–950 ramp

primary
#38247B
secondary
#97AD4D
accent
#DE4ABC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #38247B

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

Preview Lab → · Contrast checker → · Palette generator →

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