#2A1A9B#2A1A9B

#2A1A9B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.1% C 0.192 H 275.6°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#2A1A9B
RGBrgb(42, 26, 155)
HSLhsl(247, 71%, 35%)
HSVhsv(247, 83%, 61%)
CMYKcmyk(72.9%, 83.2%, 0%, 39.2%)
CIE-LABlab(22.29, 46.89, -66.00)
CIE-LCHlch(22.29, 80.96, 305.39°)
OKLaboklab(35.1% 0.0188 -0.1908)
OKLCHoklch(35.1% 0.192 275.6)
XYZxyz(7.2387, 3.5969, 31.3168)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A9B #8B9B1A
analogous
#1A4A9B #2A1A9B #6A1A9B
triadic
#2A1A9B #9B2A1A #1A9B2A
tetradic
#2A1A9B #9B1A4A #8B9B1A #1A9B6A
square
#2A1A9B #9B1A4A #8B9B1A #1A9B6A
split-complementary
#2A1A9B #9B6A1A #4A9B1A
monochromatic
#0E0832 #1C1167 #2A1A9B #3823CF #604EE1

Accessibility & contrast

On white

12.21
#2A1A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2A1A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A9B
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A9B#FFFFFF#000000##FFFFFF
##2A1A9B1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9E
Deuteranopia (green-blind)
#002F99
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a1a9b;
/* rgb */ color: rgb(42, 26, 155);
/* oklch */ color: oklch(35.1% 0.192 275.6);
Tailwind
colors: {
  custom: {
    50: '#775bba',
    500: '#2a1a9b',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a9b;
$custom-light: #775bba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a9b",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 155
  },
  "hsl": {
    "h": 247.442,
    "s": 71.271,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35104,
    "c": 0.1917,
    "h": 275.6
  },
  "luminance": 0.03598
}

Semantic roles & 50–950 ramp

primary
#2A1A9B
secondary
#B5C44D
accent
#EE3AD8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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