#2A1A97#2A1A97

#2A1A97 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.187 H 276.1°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#2A1A97
RGBrgb(42, 26, 151)
HSLhsl(248, 71%, 35%)
HSVhsv(248, 83%, 59%)
CMYKcmyk(72.2%, 82.8%, 0%, 40.8%)
CIE-LABlab(21.82, 45.66, -64.33)
CIE-LCHlch(21.82, 78.89, 305.37°)
OKLaboklab(34.64% 0.0199 -0.1859)
OKLCHoklch(34.64% 0.187 276.1)
XYZxyz(6.9083, 3.4647, 29.5768)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A97 #87971A
analogous
#1A4997 #2A1A97 #691A97
triadic
#2A1A97 #972A1A #1A972A
tetradic
#2A1A97 #971A49 #87971A #1A9769
square
#2A1A97 #971A49 #87971A #1A9769
split-complementary
#2A1A97 #97691A #49971A
monochromatic
#0D082F #1B1163 #2A1A97 #3923CB #5E4BE0

Accessibility & contrast

On white

12.40
#2A1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2A1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A97
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A97#FFFFFF#000000##FFFFFF
##2A1A971.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00399A
Deuteranopia (green-blind)
#002F95
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a1a97;
/* rgb */ color: rgb(42, 26, 151);
/* oklch */ color: oklch(34.6% 0.187 276.1);
Tailwind
colors: {
  custom: {
    50: '#765bb7',
    500: '#2a1a97',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a97;
$custom-light: #765bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a97",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 247.68,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34638,
    "c": 0.187,
    "h": 276.1
  },
  "luminance": 0.03465
}

Semantic roles & 50–950 ramp

primary
#2A1A97
secondary
#B3C24B
accent
#ED3AD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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