#2A166E#2A166E

#2A166E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.140 H 284.2°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#2A166E
RGBrgb(42, 22, 110)
HSLhsl(254, 67%, 26%)
HSVhsv(254, 80%, 43%)
CMYKcmyk(61.8%, 80%, 0%, 56.9%)
CIE-LABlab(16.46, 34.79, -47.23)
CIE-LCHlch(16.46, 58.66, 306.38°)
OKLaboklab(29.54% 0.0344 -0.1361)
OKLCHoklch(29.54% 0.14 284.2)
XYZxyz(4.0554, 2.1916, 14.9582)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A166E #5A6E16
analogous
#162E6E #2A166E #56166E
triadic
#2A166E #6E2A16 #166E2A
tetradic
#2A166E #6E162E #5A6E16 #166E56
square
#2A166E #6E162E #5A6E16 #166E56
split-complementary
#2A166E #6E5616 #2E6E16
monochromatic
#0A051A #170C3B #2A166E #3D20A1 #512AD4

Accessibility & contrast

On white

14.60
#2A166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A166E
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A166E#FFFFFF#000000##FFFFFF
##2A166E1.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B70
Deuteranopia (green-blind)
#00266C
Tritanopia (blue-blind)
#022F41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a166e;
/* rgb */ color: rgb(42, 22, 110);
/* oklch */ color: oklch(29.5% 0.140 284.2);
Tailwind
colors: {
  custom: {
    50: '#6d5699',
    500: '#2a166e',
    950: '#000000',
  },
}
SCSS
$custom: #2a166e;
$custom-light: #6d5699;
$custom-dark: #000000;
JSON
{
  "hex": "#2a166e",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 253.636,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29537,
    "c": 0.14038,
    "h": 284.2
  },
  "luminance": 0.02192
}

Semantic roles & 50–950 ramp

primary
#2A166E
secondary
#8CA43C
accent
#EA3EC3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2A166E

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

Preview Lab → · Contrast checker → · Palette generator →

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