#3A166B#3A166B

#3A166B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.137 H 296.8°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#3A166B
RGBrgb(58, 22, 107)
HSLhsl(265, 66%, 25%)
HSVhsv(265, 79%, 42%)
CMYKcmyk(45.8%, 79.4%, 0%, 58%)
CIE-LABlab(18.08, 36.45, -42.55)
CIE-LCHlch(18.08, 56.03, 310.58°)
OKLaboklab(31.02% 0.0616 -0.1218)
OKLCHoklch(31.02% 0.137 296.8)
XYZxyz(4.6850, 2.5348, 14.1495)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A166B #476B16
analogous
#161C6B #3A166B #64166B
triadic
#3A166B #6B3A16 #166B3A
tetradic
#3A166B #6B161C #476B16 #166B64
square
#3A166B #6B161C #476B16 #166B64
split-complementary
#3A166B #6B6416 #1C6B16
monochromatic
#0E0519 #1E0C38 #3A166B #56209E #712BD1

Accessibility & contrast

On white

13.93
#3A166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#3A166B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A166B
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A166B#FFFFFF#000000##FFFFFF
##3A166B1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6D
Deuteranopia (green-blind)
#002B69
Tritanopia (blue-blind)
#2D2D3F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a166b;
/* rgb */ color: rgb(58, 22, 107);
/* oklch */ color: oklch(31.0% 0.137 296.8);
Tailwind
colors: {
  custom: {
    50: '#765796',
    500: '#3a166b',
    950: '#000000',
  },
}
SCSS
$custom: #3a166b;
$custom-light: #765796;
$custom-dark: #000000;
JSON
{
  "hex": "#3a166b",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 265.412,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3102,
    "c": 0.1365,
    "h": 296.8
  },
  "luminance": 0.02535
}

Semantic roles & 50–950 ramp

primary
#3A166B
secondary
#76A13B
accent
#E93FA1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A166B

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

Preview Lab → · Contrast checker → · Palette generator →

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