#3B286E#3B286E

#3B286E is a dark, moderate violet. Relative luminance 0.036; OKLCH L 34.1% C 0.116 H 291.5°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#3B286E
RGBrgb(59, 40, 110)
HSLhsl(256, 47%, 29%)
HSVhsv(256, 64%, 43%)
CMYKcmyk(46.4%, 63.6%, 0%, 56.9%)
CIE-LABlab(22.21, 27.25, -37.78)
CIE-LCHlch(22.21, 46.58, 305.80°)
OKLaboklab(34.09% 0.0426 -0.1078)
OKLCHoklch(34.09% 0.116 291.5)
XYZxyz(5.3761, 3.5730, 15.1552)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B286E #5B6E28
analogous
#28386E #3B286E #5E286E
triadic
#3B286E #6E3B28 #286E3B
tetradic
#3B286E #6E2838 #5B6E28 #286E5E
square
#3B286E #6E2838 #5B6E28 #286E5E
split-complementary
#3B286E #6E5E28 #386E28
monochromatic
#0C0816 #231841 #3B286E #53389B #6F51C0

Accessibility & contrast

On white

12.25
#3B286E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3B286E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B286E
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B286E#FFFFFF#000000##FFFFFF
##3B286E1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003670
Deuteranopia (green-blind)
#00346D
Tritanopia (blue-blind)
#2C3847
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3b286e;
/* rgb */ color: rgb(59, 40, 110);
/* oklch */ color: oklch(34.1% 0.116 291.5);
Tailwind
colors: {
  custom: {
    50: '#756398',
    500: '#3b286e',
    950: '#000000',
  },
}
SCSS
$custom: #3b286e;
$custom-light: #756398;
$custom-dark: #000000;
JSON
{
  "hex": "#3b286e",
  "rgb": {
    "r": 59,
    "g": 40,
    "b": 110
  },
  "hsl": {
    "h": 256.286,
    "s": 46.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3409,
    "c": 0.11591,
    "h": 291.5
  },
  "luminance": 0.03573
}

Semantic roles & 50–950 ramp

primary
#3B286E
secondary
#8BA051
accent
#D651B2
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3B286E

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

Preview Lab → · Contrast checker → · Palette generator →

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