#3B145F#3B145F

#3B145F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.125 H 303.1°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#3B145F
RGBrgb(59, 20, 95)
HSLhsl(271, 65%, 23%)
HSVhsv(271, 79%, 37%)
CMYKcmyk(37.9%, 78.9%, 0%, 62.7%)
CIE-LABlab(16.78, 34.34, -36.75)
CIE-LCHlch(16.78, 50.30, 313.05°)
OKLaboklab(29.8% 0.0683 -0.1047)
OKLCHoklch(29.8% 0.125 303.1)
XYZxyz(4.1189, 2.2563, 11.0428)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B145F #385F14
analogous
#16145F #3B145F #5F145D
triadic
#3B145F #5F3B14 #145F3B
tetradic
#3B145F #5F1614 #385F14 #145D5F
square
#3B145F #5F1614 #385F14 #145D5F
split-complementary
#3B145F #5D5F14 #145F16
monochromatic
#100519 #1C092C #3B145F #5A1F92 #7A29C4

Accessibility & contrast

On white

14.47
#3B145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3B145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B145F
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B145F#FFFFFF#000000##FFFFFF
##3B145F1.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#00295D
Tritanopia (blue-blind)
#342738
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3b145f;
/* rgb */ color: rgb(59, 20, 95);
/* oklch */ color: oklch(29.8% 0.125 303.1);
Tailwind
colors: {
  custom: {
    50: '#75568d',
    500: '#3b145f',
    950: '#000000',
  },
}
SCSS
$custom: #3b145f;
$custom-light: #75568d;
$custom-dark: #000000;
JSON
{
  "hex": "#3b145f",
  "rgb": {
    "r": 59,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 271.2,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29798,
    "c": 0.12504,
    "h": 303.1
  },
  "luminance": 0.02256
}

Semantic roles & 50–950 ramp

primary
#3B145F
secondary
#669738
accent
#E84091
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3B145F

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

Preview Lab → · Contrast checker → · Palette generator →

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