#2A1A87#2A1A87

#2A1A87 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.168 H 278.4°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#2A1A87
RGBrgb(42, 26, 135)
HSLhsl(249, 68%, 32%)
HSVhsv(249, 81%, 53%)
CMYKcmyk(68.9%, 80.7%, 0%, 47.1%)
CIE-LABlab(19.96, 40.65, -57.44)
CIE-LCHlch(19.96, 70.37, 305.29°)
OKLaboklab(32.81% 0.0246 -0.1659)
OKLCHoklch(32.81% 0.168 278.4)
XYZxyz(5.6960, 2.9798, 23.1920)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A87 #77871A
analogous
#1A4187 #2A1A87 #611A87
triadic
#2A1A87 #872A1A #1A872A
tetradic
#2A1A87 #871A41 #77871A #1A8761
square
#2A1A87 #871A41 #77871A #1A8761
split-complementary
#2A1A87 #87611A #41871A
monochromatic
#0A0620 #1A1054 #2A1A87 #3A24BA #5841DA

Accessibility & contrast

On white

13.16
#2A1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2A1A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A87
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A87#FFFFFF#000000##FFFFFF
##2A1A871.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a1a87;
/* rgb */ color: rgb(42, 26, 135);
/* oklch */ color: oklch(32.8% 0.168 278.4);
Tailwind
colors: {
  custom: {
    50: '#725aab',
    500: '#2a1a87',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a87;
$custom-light: #725aab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a87",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 248.807,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32808,
    "c": 0.16772,
    "h": 278.4
  },
  "luminance": 0.0298
}

Semantic roles & 50–950 ramp

primary
#2A1A87
secondary
#A9BA42
accent
#EB3DD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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