#38258F#38258F

#38258F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.164 H 282.8°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#38258F
RGBrgb(56, 37, 143)
HSLhsl(251, 59%, 35%)
HSVhsv(251, 74%, 56%)
CMYKcmyk(60.8%, 74.1%, 0%, 43.9%)
CIE-LABlab(24.15, 38.98, -55.49)
CIE-LCHlch(24.15, 67.81, 305.08°)
OKLaboklab(36.32% 0.0362 -0.1599)
OKLCHoklch(36.32% 0.164 282.8)
XYZxyz(7.2488, 4.1466, 26.3997)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38258F #7C8F25
analogous
#25478F #38258F #6D258F
triadic
#38258F #8F3825 #258F38
tetradic
#38258F #8F2547 #7C8F25 #258F6D
square
#38258F #8F2547 #7C8F25 #258F6D
split-complementary
#38258F #8F6D25 #478F25
monochromatic
#120C2E #25185E #38258F #4B32C0 #705AD4

Accessibility & contrast

On white

11.48
#38258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#38258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38258F
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38258F#FFFFFF#000000##FFFFFF
##38258F1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #38258f;
/* rgb */ color: rgb(56, 37, 143);
/* oklch */ color: oklch(36.3% 0.164 282.8);
Tailwind
colors: {
  custom: {
    50: '#7962b1',
    500: '#38258f',
    950: '#000000',
  },
}
SCSS
$custom: #38258f;
$custom-light: #7962b1;
$custom-dark: #000000;
JSON
{
  "hex": "#38258f",
  "rgb": {
    "r": 56,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 250.755,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36317,
    "c": 0.16394,
    "h": 282.8
  },
  "luminance": 0.04147
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #38258F

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

Preview Lab → · Contrast checker → · Palette generator →

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