#2A166F#2A166F

#2A166F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.142 H 283.9°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#2A166F
RGBrgb(42, 22, 111)
HSLhsl(253, 67%, 26%)
HSVhsv(253, 80%, 44%)
CMYKcmyk(62.2%, 80.2%, 0%, 56.5%)
CIE-LABlab(16.57, 35.11, -47.70)
CIE-LCHlch(16.57, 59.23, 306.36°)
OKLaboklab(29.65% 0.0342 -0.1375)
OKLCHoklch(29.65% 0.142 283.9)
XYZxyz(4.1101, 2.2135, 15.2465)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A166F #5B6F16
analogous
#162E6F #2A166F #56166F
triadic
#2A166F #6F2A16 #166F2A
tetradic
#2A166F #6F162E #5B6F16 #166F56
square
#2A166F #6F162E #5B6F16 #166F56
split-complementary
#2A166F #6F5616 #2E6F16
monochromatic
#0A051A #170C3C #2A166F #3D20A2 #512BD5

Accessibility & contrast

On white

14.56
#2A166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2A166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A166F
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A166F#FFFFFF#000000##FFFFFF
##2A166F1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00266D
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a166f;
/* rgb */ color: rgb(42, 22, 111);
/* oklch */ color: oklch(29.6% 0.142 283.9);
Tailwind
colors: {
  custom: {
    50: '#6d5699',
    500: '#2a166f',
    950: '#000000',
  },
}
SCSS
$custom: #2a166f;
$custom-light: #6d5699;
$custom-dark: #000000;
JSON
{
  "hex": "#2a166f",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 253.483,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29645,
    "c": 0.14166,
    "h": 283.9
  },
  "luminance": 0.02214
}

Semantic roles & 50–950 ramp

primary
#2A166F
secondary
#8DA53C
accent
#EA3EC3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A166F

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

Preview Lab → · Contrast checker → · Palette generator →

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