#2A148A#2A148A

#2A148A is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.5% C 0.176 H 278.6°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#2A148A
RGBrgb(42, 20, 138)
HSLhsl(251, 75%, 31%)
HSVhsv(251, 86%, 54%)
CMYKcmyk(69.6%, 85.5%, 0%, 45.9%)
CIE-LABlab(19.34, 44.43, -60.36)
CIE-LCHlch(19.34, 74.95, 306.36°)
OKLaboklab(32.48% 0.0265 -0.1743)
OKLCHoklch(32.48% 0.176 278.6)
XYZxyz(5.7910, 2.8270, 24.2803)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A148A #748A14
analogous
#14398A #2A148A #65148A
triadic
#2A148A #8A2A14 #148A2A
tetradic
#2A148A #8A1439 #748A14 #148A65
square
#2A148A #8A1439 #748A14 #148A65
split-complementary
#2A148A #8A6514 #398A14
monochromatic
#09051F #1A0C55 #2A148A #3A1CBF #5636E2

Accessibility & contrast

On white

13.41
#2A148A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2A148A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A148A
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A148A#FFFFFF#000000##FFFFFF
##2A148A1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002A88
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a148a;
/* rgb */ color: rgb(42, 20, 138);
/* oklch */ color: oklch(32.5% 0.176 278.6);
Tailwind
colors: {
  custom: {
    50: '#7357ad',
    500: '#2a148a',
    950: '#000000',
  },
}
SCSS
$custom: #2a148a;
$custom-light: #7357ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a148a",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 138
  },
  "hsl": {
    "h": 251.186,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32478,
    "c": 0.1763,
    "h": 278.6
  },
  "luminance": 0.02828
}

Semantic roles & 50–950 ramp

primary
#2A148A
secondary
#A6BE3C
accent
#F136CE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2A148A

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

Preview Lab → · Contrast checker → · Palette generator →

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