#36237F#36237F

#36237F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.146 H 285.2°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#36237F
RGBrgb(54, 35, 127)
HSLhsl(252, 57%, 32%)
HSVhsv(252, 72%, 50%)
CMYKcmyk(57.5%, 72.4%, 0%, 50.2%)
CIE-LABlab(22.01, 34.72, -48.98)
CIE-LCHlch(22.01, 60.04, 305.33°)
OKLaboklab(34.28% 0.0383 -0.1409)
OKLCHoklch(34.28% 0.146 285.2)
XYZxyz(5.9520, 3.5183, 20.4400)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#36237F #6C7F23
analogous
#233E7F #36237F #64237F
triadic
#36237F #7F3623 #237F36
tetradic
#36237F #7F233E #6C7F23 #237F64
square
#36237F #7F233E #6C7F23 #237F64
split-complementary
#36237F #7F6423 #3E7F23
monochromatic
#0D091F #22164F #36237F #4A30AF #694ECE

Accessibility & contrast

On white

12.33
#36237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#36237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #36237F
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##36237F#FFFFFF#000000##FFFFFF
##36237F1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#143B4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #36237f;
/* rgb */ color: rgb(54, 35, 127);
/* oklch */ color: oklch(34.3% 0.146 285.2);
Tailwind
colors: {
  custom: {
    50: '#7660a5',
    500: '#36237f',
    950: '#000000',
  },
}
SCSS
$custom: #36237f;
$custom-light: #7660a5;
$custom-dark: #000000;
JSON
{
  "hex": "#36237f",
  "rgb": {
    "r": 54,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 252.391,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34278,
    "c": 0.146,
    "h": 285.2
  },
  "luminance": 0.03519
}

Semantic roles & 50–950 ramp

primary
#36237F
secondary
#9DB14C
accent
#E048C1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #36237F

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

Preview Lab → · Contrast checker → · Palette generator →

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