#3B236E#3B236E

#3B236E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.2% C 0.123 H 293.2°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#3B236E
RGBrgb(59, 35, 110)
HSLhsl(259, 52%, 28%)
HSVhsv(259, 68%, 43%)
CMYKcmyk(46.4%, 68.2%, 0%, 56.9%)
CIE-LABlab(21.05, 30.35, -39.65)
CIE-LCHlch(21.05, 49.94, 307.43°)
OKLaboklab(33.25% 0.0487 -0.1133)
OKLCHoklch(33.25% 0.123 293.2)
XYZxyz(5.2184, 3.2575, 15.1026)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B236E #566E23
analogous
#23306E #3B236E #60236E
triadic
#3B236E #6E3B23 #236E3B
tetradic
#3B236E #6E2330 #566E23 #236E60
square
#3B236E #6E2330 #566E23 #236E60
split-complementary
#3B236E #6E6023 #306E23
monochromatic
#0C0717 #221440 #3B236E #54329C #6F47C4

Accessibility & contrast

On white

12.71
#3B236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3B236E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B236E
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B236E#FFFFFF#000000##FFFFFF
##3B236E1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#00316C
Tritanopia (blue-blind)
#2D3545
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3b236e;
/* rgb */ color: rgb(59, 35, 110);
/* oklch */ color: oklch(33.2% 0.123 293.2);
Tailwind
colors: {
  custom: {
    50: '#765f98',
    500: '#3b236e',
    950: '#000000',
  },
}
SCSS
$custom: #3b236e;
$custom-light: #765f98;
$custom-dark: #000000;
JSON
{
  "hex": "#3b236e",
  "rgb": {
    "r": 59,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 259.2,
    "s": 51.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33248,
    "c": 0.12333,
    "h": 293.2
  },
  "luminance": 0.03258
}

Semantic roles & 50–950 ramp

primary
#3B236E
secondary
#86A14C
accent
#DB4DAE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3B236E

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

Preview Lab → · Contrast checker → · Palette generator →

#3B236E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva