#2A1A63#2A1A63

#2A1A63 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.121 H 286.2°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#2A1A63
RGBrgb(42, 26, 99)
HSLhsl(253, 58%, 25%)
HSVhsv(253, 74%, 39%)
CMYKcmyk(57.6%, 73.7%, 0%, 61.2%)
CIE-LABlab(16.16, 28.90, -40.50)
CIE-LCHlch(16.16, 49.76, 305.51°)
OKLaboklab(28.98% 0.0337 -0.1164)
OKLCHoklch(28.98% 0.121 286.2)
XYZxyz(3.5757, 2.1317, 12.0250)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A63 #53631A
analogous
#1A2E63 #2A1A63 #4F1A63
triadic
#2A1A63 #632A1A #1A632A
tetradic
#2A1A63 #631A2E #53631A #1A634F
square
#2A1A63 #631A2E #53631A #1A634F
split-complementary
#2A1A63 #634F1A #2E631A
monochromatic
#0A0618 #150D33 #2A1A63 #3F2793 #5333C4

Accessibility & contrast

On white

14.72
#2A1A63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1A63
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A63#FFFFFF#000000##FFFFFF
##2A1A631.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A65
Deuteranopia (green-blind)
#002662
Tritanopia (blue-blind)
#122D3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a1a63;
/* rgb */ color: rgb(42, 26, 99);
/* oklch */ color: oklch(29.0% 0.121 286.2);
Tailwind
colors: {
  custom: {
    50: '#6a5890',
    500: '#2a1a63',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a63;
$custom-light: #6a5890;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a63",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 99
  },
  "hsl": {
    "h": 253.151,
    "s": 58.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28984,
    "c": 0.12121,
    "h": 286.2
  },
  "luminance": 0.02132
}

Semantic roles & 50–950 ramp

primary
#2A1A63
secondary
#859940
accent
#E246C0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2A1A63

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

Preview Lab → · Contrast checker → · Palette generator →

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