#38258E#38258E

#38258E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.163 H 282.9°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#38258E
RGBrgb(56, 37, 142)
HSLhsl(251, 59%, 35%)
HSVhsv(251, 74%, 56%)
CMYKcmyk(60.6%, 73.9%, 0%, 44.3%)
CIE-LABlab(24.05, 38.66, -55.03)
CIE-LCHlch(24.05, 67.25, 305.09°)
OKLaboklab(36.22% 0.0364 -0.1585)
OKLCHoklch(36.22% 0.163 282.9)
XYZxyz(7.1734, 4.1164, 26.0025)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38258E #7B8E25
analogous
#25478E #38258E #6C258E
triadic
#38258E #8E3825 #258E38
tetradic
#38258E #8E2547 #7B8E25 #258E6C
square
#38258E #8E2547 #7B8E25 #258E6C
split-complementary
#38258E #8E6C25 #478E25
monochromatic
#120C2D #25185D #38258E #4B32BF #705AD4

Accessibility & contrast

On white

11.52
#38258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38258E
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38258E#FFFFFF#000000##FFFFFF
##38258E1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #38258e;
/* rgb */ color: rgb(56, 37, 142);
/* oklch */ color: oklch(36.2% 0.163 282.9);
Tailwind
colors: {
  custom: {
    50: '#7962b0',
    500: '#38258e',
    950: '#000000',
  },
}
SCSS
$custom: #38258e;
$custom-light: #7962b0;
$custom-dark: #000000;
JSON
{
  "hex": "#38258e",
  "rgb": {
    "r": 56,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 250.857,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36218,
    "c": 0.16268,
    "h": 282.9
  },
  "luminance": 0.04117
}

Semantic roles & 50–950 ramp

primary
#38258E
secondary
#A7B956
accent
#E246C6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #38258E

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

Preview Lab → · Contrast checker → · Palette generator →

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