#2A146A#2A146A

#2A146A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.137 H 285.7°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#2A146A
RGBrgb(42, 20, 106)
HSLhsl(255, 68%, 25%)
HSVhsv(255, 81%, 42%)
CMYKcmyk(60.4%, 81.1%, 0%, 58.4%)
CIE-LABlab(15.66, 34.59, -45.94)
CIE-LCHlch(15.66, 57.51, 306.98°)
OKLaboklab(28.85% 0.0372 -0.1323)
OKLCHoklch(28.85% 0.137 285.7)
XYZxyz(3.8057, 2.0329, 13.8247)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A146A #546A14
analogous
#14296A #2A146A #55146A
triadic
#2A146A #6A2A14 #146A2A
tetradic
#2A146A #6A1429 #546A14 #146A55
square
#2A146A #6A1429 #546A14 #146A55
split-complementary
#2A146A #6A5514 #296A14
monochromatic
#0A051A #160A37 #2A146A #3E1E9D #5327D1

Accessibility & contrast

On white

14.93
#2A146A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2A146A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A146A
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A146A#FFFFFF#000000##FFFFFF
##2A146A1.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002468
Tritanopia (blue-blind)
#092D3E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a146a;
/* rgb */ color: rgb(42, 20, 106);
/* oklch */ color: oklch(28.8% 0.137 285.7);
Tailwind
colors: {
  custom: {
    50: '#6c5596',
    500: '#2a146a',
    950: '#000000',
  },
}
SCSS
$custom: #2a146a;
$custom-light: #6c5596;
$custom-dark: #000000;
JSON
{
  "hex": "#2a146a",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 106
  },
  "hsl": {
    "h": 255.349,
    "s": 68.254,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28845,
    "c": 0.13742,
    "h": 285.7
  },
  "luminance": 0.02033
}

Semantic roles & 50–950 ramp

primary
#2A146A
secondary
#86A139
accent
#EB3DBE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2A146A

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

Preview Lab → · Contrast checker → · Palette generator →

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