#3B165E#3B165E

#3B165E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.121 H 303.2°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#3B165E
RGBrgb(59, 22, 94)
HSLhsl(271, 62%, 23%)
HSVhsv(271, 77%, 37%)
CMYKcmyk(37.2%, 76.6%, 0%, 63.1%)
CIE-LABlab(17.05, 33.07, -35.65)
CIE-LCHlch(17.05, 48.63, 312.84°)
OKLaboklab(29.96% 0.0664 -0.1015)
OKLCHoklch(29.96% 0.121 303.2)
XYZxyz(4.1105, 2.3118, 10.8172)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B165E #395E16
analogous
#17165E #3B165E #5E165D
triadic
#3B165E #5E3B16 #165E3B
tetradic
#3B165E #5E1716 #395E16 #165D5E
square
#3B165E #5E1716 #395E16 #165D5E
split-complementary
#3B165E #5D5E16 #165E17
monochromatic
#100619 #1C0A2C #3B165E #5A2290 #792DC1

Accessibility & contrast

On white

14.36
#3B165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3B165E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B165E
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B165E#FFFFFF#000000##FFFFFF
##3B165E1.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002960
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#342738
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3b165e;
/* rgb */ color: rgb(59, 22, 94);
/* oklch */ color: oklch(30.0% 0.121 303.2);
Tailwind
colors: {
  custom: {
    50: '#75578c',
    500: '#3b165e',
    950: '#000000',
  },
}
SCSS
$custom: #3b165e;
$custom-light: #75578c;
$custom-dark: #000000;
JSON
{
  "hex": "#3b165e",
  "rgb": {
    "r": 59,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 270.833,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29959,
    "c": 0.12128,
    "h": 303.2
  },
  "luminance": 0.02312
}

Semantic roles & 50–950 ramp

primary
#3B165E
secondary
#67953B
accent
#E54392
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3B165E

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

Preview Lab → · Contrast checker → · Palette generator →

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