#2A1A89#2A1A89

#2A1A89 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.0% C 0.170 H 278.1°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#2A1A89
RGBrgb(42, 26, 137)
HSLhsl(249, 68%, 32%)
HSVhsv(249, 81%, 54%)
CMYKcmyk(69.3%, 81%, 0%, 46.3%)
CIE-LABlab(20.19, 41.29, -58.32)
CIE-LCHlch(20.19, 71.45, 305.30°)
OKLaboklab(33.03% 0.024 -0.1685)
OKLCHoklch(33.03% 0.17 278.1)
XYZxyz(5.8381, 3.0367, 23.9405)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A89 #79891A
analogous
#1A4189 #2A1A89 #621A89
triadic
#2A1A89 #892A1A #1A892A
tetradic
#2A1A89 #891A41 #79891A #1A8962
square
#2A1A89 #891A41 #79891A #1A8962
split-complementary
#2A1A89 #89621A #41891A
monochromatic
#0A0622 #1A1056 #2A1A89 #3A24BC #5842DB

Accessibility & contrast

On white

13.06
#2A1A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2A1A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A89
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A89#FFFFFF#000000##FFFFFF
##2A1A891.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002C87
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a1a89;
/* rgb */ color: rgb(42, 26, 137);
/* oklch */ color: oklch(33.0% 0.170 278.1);
Tailwind
colors: {
  custom: {
    50: '#735aad',
    500: '#2a1a89',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a89;
$custom-light: #735aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a89",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 248.649,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33033,
    "c": 0.17017,
    "h": 278.1
  },
  "luminance": 0.03037
}

Semantic roles & 50–950 ramp

primary
#2A1A89
secondary
#ABBC43
accent
#EB3DD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1A89

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

Preview Lab → · Contrast checker → · Palette generator →

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