#2A1868#2A1868

#2A1868 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.130 H 285.3°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#2A1868
RGBrgb(42, 24, 104)
HSLhsl(254, 63%, 25%)
HSVhsv(254, 77%, 41%)
CMYKcmyk(59.6%, 76.9%, 0%, 59.2%)
CIE-LABlab(16.23, 31.74, -43.69)
CIE-LCHlch(16.23, 54.00, 306.00°)
OKLaboklab(29.18% 0.0345 -0.1258)
OKLCHoklch(29.18% 0.13 285.3)
XYZxyz(3.7794, 2.1448, 13.3088)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1868 #566818
analogous
#182E68 #2A1868 #521868
triadic
#2A1868 #682A18 #18682A
tetradic
#2A1868 #68182E #566818 #186852
square
#2A1868 #68182E #566818 #186852
split-complementary
#2A1868 #685218 #2E6818
monochromatic
#0A0619 #160D36 #2A1868 #3E239A #522FCB

Accessibility & contrast

On white

14.70
#2A1868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2A1868 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1868
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1868#FFFFFF#000000##FFFFFF
##2A18681.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002666
Tritanopia (blue-blind)
#0C2E3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a1868;
/* rgb */ color: rgb(42, 24, 104);
/* oklch */ color: oklch(29.2% 0.130 285.3);
Tailwind
colors: {
  custom: {
    50: '#6c5794',
    500: '#2a1868',
    950: '#000000',
  },
}
SCSS
$custom: #2a1868;
$custom-light: #6c5794;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1868",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 253.5,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29182,
    "c": 0.1304,
    "h": 285.3
  },
  "luminance": 0.02145
}

Semantic roles & 50–950 ramp

primary
#2A1868
secondary
#889E3E
accent
#E642C1
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A1868

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

Preview Lab → · Contrast checker → · Palette generator →

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