#3B186F#3B186F

#3B186F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.139 H 295.7°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#3B186F
RGBrgb(59, 24, 111)
HSLhsl(264, 64%, 26%)
HSVhsv(264, 78%, 44%)
CMYKcmyk(46.8%, 78.4%, 0%, 56.5%)
CIE-LABlab(18.93, 36.77, -43.75)
CIE-LCHlch(18.93, 57.15, 310.04°)
OKLaboklab(31.77% 0.0602 -0.1253)
OKLCHoklch(31.77% 0.139 295.7)
XYZxyz(4.9987, 2.7306, 15.2995)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B186F #4C6F18
analogous
#18216F #3B186F #67186F
triadic
#3B186F #6F3B18 #186F3B
tetradic
#3B186F #6F1821 #4C6F18 #186F67
square
#3B186F #6F1821 #4C6F18 #186F67
split-complementary
#3B186F #6F6718 #216F18
monochromatic
#0D0519 #200D3D #3B186F #5623A1 #712FD2

Accessibility & contrast

On white

13.58
#3B186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3B186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B186F
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B186F#FFFFFF#000000##FFFFFF
##3B186F1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#2D2F42
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3b186f;
/* rgb */ color: rgb(59, 24, 111);
/* oklch */ color: oklch(31.8% 0.139 295.7);
Tailwind
colors: {
  custom: {
    50: '#775999',
    500: '#3b186f',
    950: '#000000',
  },
}
SCSS
$custom: #3b186f;
$custom-light: #775999;
$custom-dark: #000000;
JSON
{
  "hex": "#3b186f",
  "rgb": {
    "r": 59,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 264.138,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31767,
    "c": 0.13903,
    "h": 295.7
  },
  "luminance": 0.02731
}

Semantic roles & 50–950 ramp

primary
#3B186F
secondary
#7BA53E
accent
#E740A4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3B186F

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

Preview Lab → · Contrast checker → · Palette generator →

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