#2A1874#2A1874

#2A1874 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.146 H 282.4°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#2A1874
RGBrgb(42, 24, 116)
HSLhsl(252, 66%, 27%)
HSVhsv(252, 79%, 45%)
CMYKcmyk(63.8%, 79.3%, 0%, 54.5%)
CIE-LABlab(17.49, 35.63, -49.43)
CIE-LCHlch(17.49, 60.93, 305.79°)
OKLaboklab(30.45% 0.0313 -0.1425)
OKLCHoklch(30.45% 0.146 282.4)
XYZxyz(4.4329, 2.4062, 16.7504)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1874 #627418
analogous
#183474 #2A1874 #581874
triadic
#2A1874 #742A18 #18742A
tetradic
#2A1874 #741834 #627418 #187458
square
#2A1874 #741834 #627418 #187458
split-complementary
#2A1874 #745818 #347418
monochromatic
#090519 #180E41 #2A1874 #3C22A7 #5232D5

Accessibility & contrast

On white

14.18
#2A1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1874
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1874#FFFFFF#000000##FFFFFF
##2A18741.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a1874;
/* rgb */ color: rgb(42, 24, 116);
/* oklch */ color: oklch(30.5% 0.146 282.4);
Tailwind
colors: {
  custom: {
    50: '#6e589d',
    500: '#2a1874',
    950: '#000000',
  },
}
SCSS
$custom: #2a1874;
$custom-light: #6e589d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1874",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 251.739,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30451,
    "c": 0.14592,
    "h": 282.4
  },
  "luminance": 0.02406
}

Semantic roles & 50–950 ramp

primary
#2A1874
secondary
#94A93F
accent
#E93FC7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1874

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

Preview Lab → · Contrast checker → · Palette generator →

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