#2A1A76#2A1A76

#2A1A76 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.146 H 281.5°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#2A1A76
RGBrgb(42, 26, 118)
HSLhsl(250, 64%, 28%)
HSVhsv(250, 78%, 46%)
CMYKcmyk(64.4%, 78%, 0%, 53.7%)
CIE-LABlab(18.09, 35.17, -49.72)
CIE-LCHlch(18.09, 60.90, 305.28°)
OKLaboklab(30.94% 0.0293 -0.1434)
OKLCHoklch(30.94% 0.146 281.5)
XYZxyz(4.5932, 2.5387, 17.3840)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A76 #66761A
analogous
#1A3876 #2A1A76 #581A76
triadic
#2A1A76 #762A1A #1A762A
tetradic
#2A1A76 #761A38 #66761A #1A7658
square
#2A1A76 #761A38 #66761A #1A7658
split-complementary
#2A1A76 #76581A #38761A
monochromatic
#090619 #180F44 #2A1A76 #3C25A8 #5237D3

Accessibility & contrast

On white

13.93
#2A1A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2A1A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A76
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A76#FFFFFF#000000##FFFFFF
##2A1A761.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a1a76;
/* rgb */ color: rgb(42, 26, 118);
/* oklch */ color: oklch(30.9% 0.146 281.5);
Tailwind
colors: {
  custom: {
    50: '#6e599e',
    500: '#2a1a76',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a76;
$custom-light: #6e599e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a76",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 118
  },
  "hsl": {
    "h": 250.435,
    "s": 63.889,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3094,
    "c": 0.14637,
    "h": 281.5
  },
  "luminance": 0.02539
}

Semantic roles & 50–950 ramp

primary
#2A1A76
secondary
#98AB41
accent
#E741CA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1A76

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

Preview Lab → · Contrast checker → · Palette generator →

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