#3A166F#3A166F

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

Color values

HEX#3A166F
RGBrgb(58, 22, 111)
HSLhsl(264, 67%, 26%)
HSVhsv(264, 80%, 44%)
CMYKcmyk(47.7%, 80.2%, 0%, 56.5%)
CIE-LABlab(18.46, 37.57, -44.53)
CIE-LCHlch(18.46, 58.27, 310.16°)
OKLaboklab(31.41% 0.0604 -0.1276)
OKLCHoklch(31.41% 0.141 295.3)
XYZxyz(4.9003, 2.6209, 15.2835)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A166F #4B6F16
analogous
#161E6F #3A166F #66166F
triadic
#3A166F #6F3A16 #166F3A
tetradic
#3A166F #6F161E #4B6F16 #166F66
square
#3A166F #6F161E #4B6F16 #166F66
split-complementary
#3A166F #6F6616 #1E6F16
monochromatic
#0D051A #1F0C3C #3A166F #5520A2 #6F2BD5

Accessibility & contrast

On white

13.78
#3A166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3A166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A166F
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A166F#FFFFFF#000000##FFFFFF
##3A166F1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#2B2E42
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3a166f;
/* rgb */ color: rgb(58, 22, 111);
/* oklch */ color: oklch(31.4% 0.141 295.3);
Tailwind
colors: {
  custom: {
    50: '#765899',
    500: '#3a166f',
    950: '#000000',
  },
}
SCSS
$custom: #3a166f;
$custom-light: #765899;
$custom-dark: #000000;
JSON
{
  "hex": "#3a166f",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 264.27,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31405,
    "c": 0.14122,
    "h": 295.3
  },
  "luminance": 0.02621
}

Semantic roles & 50–950 ramp

primary
#3A166F
secondary
#7AA53C
accent
#EA3EA4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A166F

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

Preview Lab → · Contrast checker → · Palette generator →

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