#2A1987#2A1987

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

Color values

HEX#2A1987
RGBrgb(42, 25, 135)
HSLhsl(249, 69%, 31%)
HSVhsv(249, 81%, 53%)
CMYKcmyk(68.9%, 81.5%, 0%, 47.1%)
CIE-LABlab(19.79, 41.16, -57.73)
CIE-LCHlch(19.79, 70.90, 305.49°)
OKLaboklab(32.68% 0.0251 -0.1667)
OKLCHoklch(32.68% 0.169 278.6)
XYZxyz(5.6742, 2.9363, 23.1847)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1987 #768719
analogous
#193F87 #2A1987 #611987
triadic
#2A1987 #872A19 #19872A
tetradic
#2A1987 #87193F #768719 #198761
square
#2A1987 #87193F #768719 #198761
split-complementary
#2A1987 #876119 #3F8719
monochromatic
#0A0620 #1A0F53 #2A1987 #3A23BB #573FDB

Accessibility & contrast

On white

13.23
#2A1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1987
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1987#FFFFFF#000000##FFFFFF
##2A19871.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1987;
/* rgb */ color: rgb(42, 25, 135);
/* oklch */ color: oklch(32.7% 0.169 278.6);
Tailwind
colors: {
  custom: {
    50: '#7259ab',
    500: '#2a1987',
    950: '#000000',
  },
}
SCSS
$custom: #2a1987;
$custom-light: #7259ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1987",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 249.273,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32685,
    "c": 0.16862,
    "h": 278.6
  },
  "luminance": 0.02937
}

Semantic roles & 50–950 ramp

primary
#2A1987
secondary
#A8BA41
accent
#EC3CD0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1987

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

Preview Lab → · Contrast checker → · Palette generator →

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