#38287D#38287D

#38287D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.1% C 0.137 H 285.6°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#38287D
RGBrgb(56, 40, 125)
HSLhsl(251, 52%, 32%)
HSVhsv(251, 68%, 49%)
CMYKcmyk(55.2%, 68%, 0%, 51%)
CIE-LABlab(23.13, 31.41, -45.88)
CIE-LCHlch(23.13, 55.60, 304.40°)
OKLaboklab(35.08% 0.0367 -0.1317)
OKLCHoklch(35.08% 0.137 285.6)
XYZxyz(6.0902, 3.8387, 19.8181)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38287D #6D7D28
analogous
#28437D #38287D #62287D
triadic
#38287D #7D3828 #287D38
tetradic
#38287D #7D2843 #6D7D28 #287D62
square
#38287D #7D2843 #6D7D28 #287D62
split-complementary
#38287D #7D6228 #437D28
monochromatic
#0E0A20 #23194F #38287D #4D37AB #6C56C9

Accessibility & contrast

On white

11.88
#38287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#38287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38287D
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38287D#FFFFFF#000000##FFFFFF
##38287D1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#1C3D4E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #38287d;
/* rgb */ color: rgb(56, 40, 125);
/* oklch */ color: oklch(35.1% 0.137 285.6);
Tailwind
colors: {
  custom: {
    50: '#7663a3',
    500: '#38287d',
    950: '#000000',
  },
}
SCSS
$custom: #38287d;
$custom-light: #7663a3;
$custom-dark: #000000;
JSON
{
  "hex": "#38287d",
  "rgb": {
    "r": 56,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 251.294,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35076,
    "c": 0.13675,
    "h": 285.6
  },
  "luminance": 0.03839
}

Semantic roles & 50–950 ramp

primary
#38287D
secondary
#9DAE53
accent
#DB4DC0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #38287D

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

Preview Lab → · Contrast checker → · Palette generator →

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