#2A1180#2A1180

#2A1180 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.167 H 280.8°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#2A1180
RGBrgb(42, 17, 128)
HSLhsl(254, 77%, 28%)
HSVhsv(254, 87%, 50%)
CMYKcmyk(67.2%, 86.7%, 0%, 49.8%)
CIE-LABlab(17.70, 42.73, -56.76)
CIE-LCHlch(17.70, 71.05, 306.97°)
OKLaboklab(31% 0.0313 -0.1638)
OKLCHoklch(31% 0.167 280.8)
XYZxyz(5.0503, 2.4513, 20.6249)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1180 #678011
analogous
#112F80 #2A1180 #611180
triadic
#2A1180 #802A11 #11802A
tetradic
#2A1180 #80112F #678011 #118061
square
#2A1180 #80112F #678011 #118061
split-complementary
#2A1180 #806111 #2F8011
monochromatic
#09041B #180A4A #2A1180 #3C18B6 #5329E3

Accessibility & contrast

On white

14.09
#2A1180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2A1180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1180
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1180#FFFFFF#000000##FFFFFF
##2A11801.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00277E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a1180;
/* rgb */ color: rgb(42, 17, 128);
/* oklch */ color: oklch(31.0% 0.167 280.8);
Tailwind
colors: {
  custom: {
    50: '#7155a6',
    500: '#2a1180',
    950: '#000000',
  },
}
SCSS
$custom: #2a1180;
$custom-light: #7155a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1180",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 128
  },
  "hsl": {
    "h": 253.514,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31001,
    "c": 0.16677,
    "h": 280.8
  },
  "luminance": 0.02452
}

Semantic roles & 50–950 ramp

primary
#2A1180
secondary
#99B637
accent
#F335C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2A1180

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

Preview Lab → · Contrast checker → · Palette generator →

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