#2A1668#2A1668

#2A1668 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.133 H 285.8°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#2A1668
RGBrgb(42, 22, 104)
HSLhsl(255, 65%, 25%)
HSVhsv(255, 79%, 41%)
CMYKcmyk(59.6%, 78.8%, 0%, 59.2%)
CIE-LABlab(15.83, 32.88, -44.35)
CIE-LCHlch(15.83, 55.21, 306.55°)
OKLaboklab(28.9% 0.0362 -0.1277)
OKLCHoklch(28.9% 0.133 285.8)
XYZxyz(3.7397, 2.0653, 13.2956)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1668 #546816
analogous
#162B68 #2A1668 #531668
triadic
#2A1668 #682A16 #16682A
tetradic
#2A1668 #68162B #546816 #166853
square
#2A1668 #68162B #546816 #166853
split-complementary
#2A1668 #685316 #2B6816
monochromatic
#0A0519 #160B35 #2A1668 #3E219B #532BCD

Accessibility & contrast

On white

14.86
#2A1668 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2A1668 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1668
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1668#FFFFFF#000000##FFFFFF
##2A16681.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002566
Tritanopia (blue-blind)
#0C2D3E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a1668;
/* rgb */ color: rgb(42, 22, 104);
/* oklch */ color: oklch(28.9% 0.133 285.8);
Tailwind
colors: {
  custom: {
    50: '#6c5694',
    500: '#2a1668',
    950: '#000000',
  },
}
SCSS
$custom: #2a1668;
$custom-light: #6c5694;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1668",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 254.634,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28898,
    "c": 0.1327,
    "h": 285.8
  },
  "luminance": 0.02066
}

Semantic roles & 50–950 ramp

primary
#2A1668
secondary
#869F3B
accent
#E840BF
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A1668

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

Preview Lab → · Contrast checker → · Palette generator →

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