#38258D#38258D

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

Color values

HEX#38258D
RGBrgb(56, 37, 141)
HSLhsl(251, 58%, 35%)
HSVhsv(251, 74%, 55%)
CMYKcmyk(60.3%, 73.8%, 0%, 44.7%)
CIE-LABlab(23.96, 38.34, -54.57)
CIE-LCHlch(23.96, 66.69, 305.09°)
OKLaboklab(36.12% 0.0366 -0.1572)
OKLCHoklch(36.12% 0.161 283.1)
XYZxyz(7.0987, 4.0865, 25.6088)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38258D #7A8D25
analogous
#25468D #38258D #6C258D
triadic
#38258D #8D3825 #258D38
tetradic
#38258D #8D2546 #7A8D25 #258D6C
square
#38258D #8D2546 #7A8D25 #258D6C
split-complementary
#38258D #8D6C25 #468D25
monochromatic
#110C2C #25185D #38258D #4B32BD #6F59D3

Accessibility & contrast

On white

11.55
#38258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#38258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38258D
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38258D#FFFFFF#000000##FFFFFF
##38258D1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#024156
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #38258d;
/* rgb */ color: rgb(56, 37, 141);
/* oklch */ color: oklch(36.1% 0.161 283.1);
Tailwind
colors: {
  custom: {
    50: '#7962af',
    500: '#38258d',
    950: '#000000',
  },
}
SCSS
$custom: #38258d;
$custom-light: #7962af;
$custom-dark: #000000;
JSON
{
  "hex": "#38258d",
  "rgb": {
    "r": 56,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 250.962,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36119,
    "c": 0.16141,
    "h": 283.1
  },
  "luminance": 0.04087
}

Semantic roles & 50–950 ramp

primary
#38258D
secondary
#A6B856
accent
#E246C5
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #38258D

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

Preview Lab → · Contrast checker → · Palette generator →

#38258D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva