#3B166E#3B166E

#3B166E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.140 H 296.4°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#3B166E
RGBrgb(59, 22, 110)
HSLhsl(265, 67%, 26%)
HSVhsv(265, 80%, 43%)
CMYKcmyk(46.4%, 80%, 0%, 56.9%)
CIE-LABlab(18.49, 37.47, -43.82)
CIE-LCHlch(18.49, 57.65, 310.53°)
OKLaboklab(31.43% 0.0624 -0.1255)
OKLCHoklch(31.43% 0.14 296.4)
XYZxyz(4.9043, 2.6293, 14.9979)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B166E #496E16
analogous
#161D6E #3B166E #67166E
triadic
#3B166E #6E3B16 #166E3B
tetradic
#3B166E #6E161D #496E16 #166E67
square
#3B166E #6E161D #496E16 #166E67
split-complementary
#3B166E #6E6716 #1D6E16
monochromatic
#0E051A #200C3B #3B166E #5620A1 #722AD4

Accessibility & contrast

On white

13.76
#3B166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3B166E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B166E
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B166E#FFFFFF#000000##FFFFFF
##3B166E1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E70
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#2D2E41
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3b166e;
/* rgb */ color: rgb(59, 22, 110);
/* oklch */ color: oklch(31.4% 0.140 296.4);
Tailwind
colors: {
  custom: {
    50: '#775898',
    500: '#3b166e',
    950: '#000000',
  },
}
SCSS
$custom: #3b166e;
$custom-light: #775898;
$custom-dark: #000000;
JSON
{
  "hex": "#3b166e",
  "rgb": {
    "r": 59,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 265.227,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3143,
    "c": 0.14013,
    "h": 296.4
  },
  "luminance": 0.02629
}

Semantic roles & 50–950 ramp

primary
#3B166E
secondary
#78A43C
accent
#EA3EA2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3B166E

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

Preview Lab → · Contrast checker → · Palette generator →

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