#3D166B#3D166B

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

Color values

HEX#3D166B
RGBrgb(61, 22, 107)
HSLhsl(268, 66%, 25%)
HSVhsv(268, 79%, 42%)
CMYKcmyk(43%, 79.4%, 0%, 58%)
CIE-LABlab(18.49, 37.00, -41.87)
CIE-LCHlch(18.49, 55.87, 311.47°)
OKLaboklab(31.4% 0.0664 -0.1197)
OKLCHoklch(31.4% 0.137 299)
XYZxyz(4.8645, 2.6274, 14.1579)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D166B #446B16
analogous
#161A6B #3D166B #67166B
triadic
#3D166B #6B3D16 #166B3D
tetradic
#3D166B #6B161A #446B16 #166B67
square
#3D166B #6B161A #446B16 #166B67
split-complementary
#3D166B #6B6716 #1A6B16
monochromatic
#0E0519 #200C38 #3D166B #5A209E #772BD1

Accessibility & contrast

On white

13.77
#3D166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D166B
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D166B#FFFFFF#000000##FFFFFF
##3D166B1.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6D
Deuteranopia (green-blind)
#002C69
Tritanopia (blue-blind)
#322C3F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3d166b;
/* rgb */ color: rgb(61, 22, 107);
/* oklch */ color: oklch(31.4% 0.137 299.0);
Tailwind
colors: {
  custom: {
    50: '#785896',
    500: '#3d166b',
    950: '#000000',
  },
}
SCSS
$custom: #3d166b;
$custom-light: #785896;
$custom-dark: #000000;
JSON
{
  "hex": "#3d166b",
  "rgb": {
    "r": 61,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 267.529,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31398,
    "c": 0.13689,
    "h": 299
  },
  "luminance": 0.02627
}

Semantic roles & 50–950 ramp

primary
#3D166B
secondary
#73A13B
accent
#E93F9B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3D166B

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

Preview Lab → · Contrast checker → · Palette generator →

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