#2A146B#2A146B

#2A146B is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.139 H 285.4°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#2A146B
RGBrgb(42, 20, 107)
HSLhsl(255, 69%, 25%)
HSVhsv(255, 81%, 42%)
CMYKcmyk(60.7%, 81.3%, 0%, 58%)
CIE-LABlab(15.77, 34.91, -46.41)
CIE-LCHlch(15.77, 58.07, 306.94°)
OKLaboklab(28.95% 0.0368 -0.1337)
OKLCHoklch(28.95% 0.139 285.4)
XYZxyz(3.8580, 2.0539, 14.1002)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A146B #556B14
analogous
#142A6B #2A146B #55146B
triadic
#2A146B #6B2A14 #146B2A
tetradic
#2A146B #6B142A #556B14 #146B55
square
#2A146B #6B142A #556B14 #146B55
split-complementary
#2A146B #6B5514 #2A6B14
monochromatic
#0A051A #160A37 #2A146B #3E1E9F #5227D2

Accessibility & contrast

On white

14.89
#2A146B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A146B
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A146B#FFFFFF#000000##FFFFFF
##2A146B1.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002569
Tritanopia (blue-blind)
#072D3F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a146b;
/* rgb */ color: rgb(42, 20, 107);
/* oklch */ color: oklch(29.0% 0.139 285.4);
Tailwind
colors: {
  custom: {
    50: '#6d5596',
    500: '#2a146b',
    950: '#000000',
  },
}
SCSS
$custom: #2a146b;
$custom-light: #6d5596;
$custom-dark: #000000;
JSON
{
  "hex": "#2a146b",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 107
  },
  "hsl": {
    "h": 255.172,
    "s": 68.504,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28953,
    "c": 0.13868,
    "h": 285.4
  },
  "luminance": 0.02054
}

Semantic roles & 50–950 ramp

primary
#2A146B
secondary
#87A239
accent
#EB3CBF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2A146B

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

Preview Lab → · Contrast checker → · Palette generator →

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