#2A1A99#2A1A99

#2A1A99 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.9% C 0.189 H 275.9°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#2A1A99
RGBrgb(42, 26, 153)
HSLhsl(248, 71%, 35%)
HSVhsv(248, 83%, 60%)
CMYKcmyk(72.5%, 83%, 0%, 40%)
CIE-LABlab(22.05, 46.28, -65.16)
CIE-LCHlch(22.05, 79.92, 305.38°)
OKLaboklab(34.87% 0.0194 -0.1884)
OKLCHoklch(34.87% 0.189 275.9)
XYZxyz(7.0721, 3.5303, 30.4395)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A99 #89991A
analogous
#1A4999 #2A1A99 #691A99
triadic
#2A1A99 #992A1A #1A992A
tetradic
#2A1A99 #991A49 #89991A #1A9969
square
#2A1A99 #991A49 #89991A #1A9969
split-complementary
#2A1A99 #99691A #49991A
monochromatic
#0D0830 #1C1165 #2A1A99 #3823CD #5F4DE1

Accessibility & contrast

On white

12.31
#2A1A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2A1A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A99
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A99#FFFFFF#000000##FFFFFF
##2A1A991.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9C
Deuteranopia (green-blind)
#002F97
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a1a99;
/* rgb */ color: rgb(42, 26, 153);
/* oklch */ color: oklch(34.9% 0.189 275.9);
Tailwind
colors: {
  custom: {
    50: '#765bb8',
    500: '#2a1a99',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a99;
$custom-light: #765bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a99",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 153
  },
  "hsl": {
    "h": 247.559,
    "s": 70.95,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34871,
    "c": 0.18935,
    "h": 275.9
  },
  "luminance": 0.03531
}

Semantic roles & 50–950 ramp

primary
#2A1A99
secondary
#B4C34C
accent
#EE3AD7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1A99

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

Preview Lab → · Contrast checker → · Palette generator →

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