#3B145D#3B145D

#3B145D is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.123 H 304.1°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#3B145D
RGBrgb(59, 20, 93)
HSLhsl(272, 65%, 22%)
HSVhsv(272, 78%, 36%)
CMYKcmyk(36.6%, 78.5%, 0%, 63.5%)
CIE-LABlab(16.60, 33.80, -35.70)
CIE-LCHlch(16.60, 49.17, 313.43°)
OKLaboklab(29.62% 0.0688 -0.1016)
OKLCHoklch(29.62% 0.123 304.1)
XYZxyz(4.0291, 2.2204, 10.5701)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B145D #365D14
analogous
#17145D #3B145D #5D145B
triadic
#3B145D #5D3B14 #145D3B
tetradic
#3B145D #5D1714 #365D14 #145B5D
square
#3B145D #5D1714 #365D14 #145B5D
split-complementary
#3B145D #5B5D14 #145D17
monochromatic
#100519 #1B092B #3B145D #5B1F8F #7B2AC2

Accessibility & contrast

On white

14.54
#3B145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#3B145D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B145D
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B145D#FFFFFF#000000##FFFFFF
##3B145D1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#00295C
Tritanopia (blue-blind)
#342637
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3b145d;
/* rgb */ color: rgb(59, 20, 93);
/* oklch */ color: oklch(29.6% 0.123 304.1);
Tailwind
colors: {
  custom: {
    50: '#75568b',
    500: '#3b145d',
    950: '#000000',
  },
}
SCSS
$custom: #3b145d;
$custom-light: #75568b;
$custom-dark: #000000;
JSON
{
  "hex": "#3b145d",
  "rgb": {
    "r": 59,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 272.055,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.2962,
    "c": 0.12272,
    "h": 304.1
  },
  "luminance": 0.0222
}

Semantic roles & 50–950 ramp

primary
#3B145D
secondary
#639538
accent
#E8408E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3B145D

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

Preview Lab → · Contrast checker → · Palette generator →

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