#2A1A86#2A1A86

#2A1A86 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.166 H 278.6°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#2A1A86
RGBrgb(42, 26, 134)
HSLhsl(249, 68%, 31%)
HSVhsv(249, 81%, 53%)
CMYKcmyk(68.7%, 80.6%, 0%, 47.5%)
CIE-LABlab(19.85, 40.33, -56.99)
CIE-LCHlch(19.85, 69.82, 305.29°)
OKLaboklab(32.7% 0.0249 -0.1646)
OKLCHoklch(32.7% 0.166 278.6)
XYZxyz(5.6259, 2.9518, 22.8229)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A86 #76861A
analogous
#1A4086 #2A1A86 #601A86
triadic
#2A1A86 #862A1A #1A862A
tetradic
#2A1A86 #861A40 #76861A #1A8660
square
#2A1A86 #861A40 #76861A #1A8660
split-complementary
#2A1A86 #86601A #40861A
monochromatic
#0A061F #1A1053 #2A1A86 #3A24B9 #5740DA

Accessibility & contrast

On white

13.20
#2A1A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2A1A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A86
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A86#FFFFFF#000000##FFFFFF
##2A1A861.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a1a86;
/* rgb */ color: rgb(42, 26, 134);
/* oklch */ color: oklch(32.7% 0.166 278.6);
Tailwind
colors: {
  custom: {
    50: '#725aaa',
    500: '#2a1a86',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a86;
$custom-light: #725aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a86",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 134
  },
  "hsl": {
    "h": 248.889,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32695,
    "c": 0.16649,
    "h": 278.6
  },
  "luminance": 0.02952
}

Semantic roles & 50–950 ramp

primary
#2A1A86
secondary
#A8B942
accent
#EA3DD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1A86

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

Preview Lab → · Contrast checker → · Palette generator →

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