#3D166E#3D166E

#3D166E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.140 H 297.9°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#3D166E
RGBrgb(61, 22, 110)
HSLhsl(267, 67%, 26%)
HSVhsv(267, 80%, 43%)
CMYKcmyk(44.5%, 80%, 0%, 56.9%)
CIE-LABlab(18.76, 37.82, -43.36)
CIE-LCHlch(18.76, 57.54, 311.09°)
OKLaboklab(31.68% 0.0656 -0.1241)
OKLCHoklch(31.68% 0.14 297.9)
XYZxyz(5.0251, 2.6916, 15.0036)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D166E #476E16
analogous
#161B6E #3D166E #69166E
triadic
#3D166E #6E3D16 #166E3D
tetradic
#3D166E #6E161B #476E16 #166E69
square
#3D166E #6E161B #476E16 #166E69
split-complementary
#3D166E #6E6916 #1B6E16
monochromatic
#0E051A #210C3B #3D166E #5920A1 #762AD4

Accessibility & contrast

On white

13.65
#3D166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3D166E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D166E
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D166E#FFFFFF#000000##FFFFFF
##3D166E1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E70
Deuteranopia (green-blind)
#002D6C
Tritanopia (blue-blind)
#302E41
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3d166e;
/* rgb */ color: rgb(61, 22, 110);
/* oklch */ color: oklch(31.7% 0.140 297.9);
Tailwind
colors: {
  custom: {
    50: '#785898',
    500: '#3d166e',
    950: '#000000',
  },
}
SCSS
$custom: #3d166e;
$custom-light: #785898;
$custom-dark: #000000;
JSON
{
  "hex": "#3d166e",
  "rgb": {
    "r": 61,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 266.591,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3168,
    "c": 0.14037,
    "h": 297.9
  },
  "luminance": 0.02692
}

Semantic roles & 50–950 ramp

primary
#3D166E
secondary
#76A43C
accent
#EA3E9E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3D166E

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

Preview Lab → · Contrast checker → · Palette generator →

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