#38287F#38287F

#38287F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.3% C 0.139 H 285.2°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#38287F
RGBrgb(56, 40, 127)
HSLhsl(251, 52%, 33%)
HSVhsv(251, 69%, 50%)
CMYKcmyk(55.9%, 68.5%, 0%, 50.2%)
CIE-LABlab(23.31, 32.06, -46.86)
CIE-LCHlch(23.31, 56.78, 304.38°)
OKLaboklab(35.26% 0.0365 -0.1346)
OKLCHoklch(35.26% 0.139 285.2)
XYZxyz(6.2193, 3.8903, 20.4977)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38287F #6F7F28
analogous
#28447F #38287F #63287F
triadic
#38287F #7F3828 #287F38
tetradic
#38287F #7F2844 #6F7F28 #287F63
square
#38287F #7F2844 #6F7F28 #287F63
split-complementary
#38287F #7F6328 #447F28
monochromatic
#0F0B22 #231950 #38287F #4D37AE #6C57CA

Accessibility & contrast

On white

11.81
#38287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#38287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38287F
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38287F#FFFFFF#000000##FFFFFF
##38287F1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#1A3E50
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #38287f;
/* rgb */ color: rgb(56, 40, 127);
/* oklch */ color: oklch(35.3% 0.139 285.2);
Tailwind
colors: {
  custom: {
    50: '#7663a5',
    500: '#38287f',
    950: '#000000',
  },
}
SCSS
$custom: #38287f;
$custom-light: #7663a5;
$custom-dark: #000000;
JSON
{
  "hex": "#38287f",
  "rgb": {
    "r": 56,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 251.034,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35256,
    "c": 0.13946,
    "h": 285.2
  },
  "luminance": 0.03891
}

Semantic roles & 50–950 ramp

primary
#38287F
secondary
#9EAF54
accent
#DC4CC1
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #38287F

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

Preview Lab → · Contrast checker → · Palette generator →

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