#2A146F#2A146F

#2A146F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.144 H 284.3°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#2A146F
RGBrgb(42, 20, 111)
HSLhsl(255, 69%, 26%)
HSVhsv(255, 82%, 44%)
CMYKcmyk(62.2%, 82%, 0%, 56.5%)
CIE-LABlab(16.21, 36.16, -48.30)
CIE-LCHlch(16.21, 60.34, 306.82°)
OKLaboklab(29.39% 0.0356 -0.1392)
OKLCHoklch(29.39% 0.144 284.3)
XYZxyz(4.0734, 2.1400, 15.2343)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A146F #596F14
analogous
#142C6F #2A146F #57146F
triadic
#2A146F #6F2A14 #146F2A
tetradic
#2A146F #6F142C #596F14 #146F57
square
#2A146F #6F142C #596F14 #146F57
split-complementary
#2A146F #6F5714 #2C6F14
monochromatic
#0A051A #160B3B #2A146F #3E1DA3 #5127D7

Accessibility & contrast

On white

14.71
#2A146F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2A146F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A146F
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A146F#FFFFFF#000000##FFFFFF
##2A146F1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00256D
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a146f;
/* rgb */ color: rgb(42, 20, 111);
/* oklch */ color: oklch(29.4% 0.144 284.3);
Tailwind
colors: {
  custom: {
    50: '#6d5599',
    500: '#2a146f',
    950: '#000000',
  },
}
SCSS
$custom: #2a146f;
$custom-light: #6d5599;
$custom-dark: #000000;
JSON
{
  "hex": "#2a146f",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 111
  },
  "hsl": {
    "h": 254.505,
    "s": 69.466,
    "l": 25.686
  },
  "oklch": {
    "l": 0.2939,
    "c": 0.14368,
    "h": 284.3
  },
  "luminance": 0.0214
}

Semantic roles & 50–950 ramp

primary
#2A146F
secondary
#8BA639
accent
#EC3CC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A146F

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

Preview Lab → · Contrast checker → · Palette generator →

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