#3B145A#3B145A

#3B145A is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.4% C 0.119 H 305.6°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#3B145A
RGBrgb(59, 20, 90)
HSLhsl(273, 64%, 22%)
HSVhsv(273, 78%, 35%)
CMYKcmyk(34.4%, 77.8%, 0%, 64.7%)
CIE-LABlab(16.35, 33.01, -34.11)
CIE-LCHlch(16.35, 47.47, 314.06°)
OKLaboklab(29.36% 0.0694 -0.097)
OKLCHoklch(29.36% 0.119 305.6)
XYZxyz(3.8988, 2.1683, 9.8840)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B145A #335A14
analogous
#18145A #3B145A #5A1456
triadic
#3B145A #5A3B14 #145A3B
tetradic
#3B145A #5A1814 #335A14 #14565A
square
#3B145A #5A1814 #335A14 #14565A
split-complementary
#3B145A #565A14 #145A18
monochromatic
#100619 #1A0928 #3B145A #5C1F8C #7D2ABE

Accessibility & contrast

On white

14.65
#3B145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#3B145A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B145A
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B145A#FFFFFF#000000##FFFFFF
##3B145A1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#002959
Tritanopia (blue-blind)
#352535
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3b145a;
/* rgb */ color: rgb(59, 20, 90);
/* oklch */ color: oklch(29.4% 0.119 305.6);
Tailwind
colors: {
  custom: {
    50: '#745689',
    500: '#3b145a',
    950: '#000000',
  },
}
SCSS
$custom: #3b145a;
$custom-light: #745689;
$custom-dark: #000000;
JSON
{
  "hex": "#3b145a",
  "rgb": {
    "r": 59,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 273.429,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29357,
    "c": 0.11924,
    "h": 305.6
  },
  "luminance": 0.02168
}

Semantic roles & 50–950 ramp

primary
#3B145A
secondary
#609238
accent
#E7418A
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3B145A

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

Preview Lab → · Contrast checker → · Palette generator →

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