#36238B#36238B

#36238B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.161 H 282.8°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#36238B
RGBrgb(54, 35, 139)
HSLhsl(251, 60%, 34%)
HSVhsv(251, 75%, 55%)
CMYKcmyk(61.2%, 74.8%, 0%, 45.5%)
CIE-LABlab(23.17, 38.54, -54.62)
CIE-LCHlch(23.17, 66.85, 305.21°)
OKLaboklab(35.46% 0.0357 -0.1574)
OKLCHoklch(35.46% 0.161 282.8)
XYZxyz(6.7811, 3.8500, 24.8069)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#36238B #788B23
analogous
#23448B #36238B #6A238B
triadic
#36238B #8B3623 #238B36
tetradic
#36238B #8B2344 #788B23 #238B6A
square
#36238B #8B2344 #788B23 #238B6A
split-complementary
#36238B #8B6A23 #448B23
monochromatic
#100A29 #23175A #36238B #492FBC #6C54D4

Accessibility & contrast

On white

11.86
#36238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#36238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #36238B
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##36238B#FFFFFF#000000##FFFFFF
##36238B1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #36238b;
/* rgb */ color: rgb(54, 35, 139);
/* oklch */ color: oklch(35.5% 0.161 282.8);
Tailwind
colors: {
  custom: {
    50: '#7860ae',
    500: '#36238b',
    950: '#000000',
  },
}
SCSS
$custom: #36238b;
$custom-light: #7860ae;
$custom-dark: #000000;
JSON
{
  "hex": "#36238b",
  "rgb": {
    "r": 54,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 250.962,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35456,
    "c": 0.1614,
    "h": 282.8
  },
  "luminance": 0.0385
}

Semantic roles & 50–950 ramp

primary
#36238B
secondary
#A5B852
accent
#E345C6
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #36238B

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

Preview Lab → · Contrast checker → · Palette generator →

#36238B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva