#38248E#38248E

#38248E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.164 H 283.1°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#38248E
RGBrgb(56, 36, 142)
HSLhsl(251, 60%, 35%)
HSVhsv(251, 75%, 56%)
CMYKcmyk(60.6%, 74.6%, 0%, 44.3%)
CIE-LABlab(23.85, 39.22, -55.36)
CIE-LCHlch(23.85, 67.84, 305.32°)
OKLaboklab(36.08% 0.0372 -0.1595)
OKLCHoklch(36.08% 0.164 283.1)
XYZxyz(7.1427, 4.0550, 25.9923)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38248E #7A8E24
analogous
#24458E #38248E #6D248E
triadic
#38248E #8E3824 #248E38
tetradic
#38248E #8E2445 #7A8E24 #248E6D
square
#38248E #8E2445 #7A8E24 #248E6D
split-complementary
#38248E #8E6D24 #458E24
monochromatic
#110B2C #25185D #38248E #4B30BF #6F58D5

Accessibility & contrast

On white

11.60
#38248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#38248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38248E
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38248E#FFFFFF#000000##FFFFFF
##38248E1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #38248e;
/* rgb */ color: rgb(56, 36, 142);
/* oklch */ color: oklch(36.1% 0.164 283.1);
Tailwind
colors: {
  custom: {
    50: '#7961b0',
    500: '#38248e',
    950: '#000000',
  },
}
SCSS
$custom: #38248e;
$custom-light: #7961b0;
$custom-dark: #000000;
JSON
{
  "hex": "#38248e",
  "rgb": {
    "r": 56,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 251.321,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36076,
    "c": 0.16379,
    "h": 283.1
  },
  "luminance": 0.04055
}

Semantic roles & 50–950 ramp

primary
#38248E
secondary
#A6B955
accent
#E345C5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #38248E

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

Preview Lab → · Contrast checker → · Palette generator →

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