#2A1AA0#2A1AA0

#2A1AA0 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.198 H 275.0°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#2A1AA0
RGBrgb(42, 26, 160)
HSLhsl(247, 72%, 36%)
HSVhsv(247, 84%, 63%)
CMYKcmyk(73.8%, 83.8%, 0%, 37.3%)
CIE-LABlab(22.89, 48.41, -68.07)
CIE-LCHlch(22.89, 83.53, 305.42°)
OKLaboklab(35.69% 0.0173 -0.1968)
OKLCHoklch(35.69% 0.198 275)
XYZxyz(7.6673, 3.7683, 33.5742)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1AA0 #90A01A
analogous
#1A4DA0 #2A1AA0 #6D1AA0
triadic
#2A1AA0 #A02A1A #1AA02A
tetradic
#2A1AA0 #A01A4D #90A01A #1AA06D
square
#2A1AA0 #A01A4D #90A01A #1AA06D
split-complementary
#2A1AA0 #A06D1A #4DA01A
monochromatic
#0E0937 #1C116B #2A1AA0 #3823D5 #6352E3

Accessibility & contrast

On white

11.97
#2A1AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A1AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1AA0
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1AA0#FFFFFF#000000##FFFFFF
##2A1AA01.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA4
Deuteranopia (green-blind)
#00309E
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a1aa0;
/* rgb */ color: rgb(42, 26, 160);
/* oklch */ color: oklch(35.7% 0.198 275.0);
Tailwind
colors: {
  custom: {
    50: '#785cbe',
    500: '#2a1aa0',
    950: '#000000',
  },
}
SCSS
$custom: #2a1aa0;
$custom-light: #785cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1aa0",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 160
  },
  "hsl": {
    "h": 247.164,
    "s": 72.043,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35691,
    "c": 0.19754,
    "h": 275
  },
  "luminance": 0.03769
}

Semantic roles & 50–950 ramp

primary
#2A1AA0
secondary
#B7C550
accent
#EF39D9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2A1AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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