#2A147A#2A147A

#2A147A is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.157 H 281.7°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#2A147A
RGBrgb(42, 20, 122)
HSLhsl(253, 72%, 28%)
HSVhsv(253, 84%, 48%)
CMYKcmyk(65.6%, 83.6%, 0%, 52.2%)
CIE-LABlab(17.45, 39.57, -53.35)
CIE-LCHlch(17.45, 66.42, 306.57°)
OKLaboklab(30.62% 0.0319 -0.1539)
OKLCHoklch(30.62% 0.157 281.7)
XYZxyz(4.7168, 2.3973, 18.6228)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A147A #647A14
analogous
#14317A #2A147A #5D147A
triadic
#2A147A #7A2A14 #147A2A
tetradic
#2A147A #7A1431 #647A14 #147A5D
square
#2A147A #7A1431 #647A14 #147A5D
split-complementary
#2A147A #7A5D14 #317A14
monochromatic
#09041A #180B45 #2A147A #3C1DAF #522CDC

Accessibility & contrast

On white

14.19
#2A147A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2A147A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A147A
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A147A#FFFFFF#000000##FFFFFF
##2A147A1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002778
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a147a;
/* rgb */ color: rgb(42, 20, 122);
/* oklch */ color: oklch(30.6% 0.157 281.7);
Tailwind
colors: {
  custom: {
    50: '#7056a2',
    500: '#2a147a',
    950: '#000000',
  },
}
SCSS
$custom: #2a147a;
$custom-light: #7056a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a147a",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 122
  },
  "hsl": {
    "h": 252.941,
    "s": 71.831,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30622,
    "c": 0.15719,
    "h": 281.7
  },
  "luminance": 0.02398
}

Semantic roles & 50–950 ramp

primary
#2A147A
secondary
#96B03A
accent
#EF39C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2A147A

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

Preview Lab → · Contrast checker → · Palette generator →

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