#2A1C87#2A1C87

#2A1C87 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.166 H 278.1°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#2A1C87
RGBrgb(42, 28, 135)
HSLhsl(248, 66%, 32%)
HSVhsv(248, 79%, 53%)
CMYKcmyk(68.9%, 79.3%, 0%, 47.1%)
CIE-LABlab(20.33, 39.60, -56.83)
CIE-LCHlch(20.33, 69.27, 304.87°)
OKLaboklab(33.06% 0.0235 -0.1642)
OKLCHoklch(33.06% 0.166 278.1)
XYZxyz(5.7419, 3.0715, 23.2072)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C87 #79871C
analogous
#1C4487 #2A1C87 #5F1C87
triadic
#2A1C87 #872A1C #1C872A
tetradic
#2A1C87 #871C44 #79871C #1C875F
square
#2A1C87 #871C44 #79871C #1C875F
split-complementary
#2A1C87 #875F1C #44871C
monochromatic
#0A0722 #1A1154 #2A1C87 #3A27BA #5845D8

Accessibility & contrast

On white

13.01
#2A1C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1C87
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C87#FFFFFF#000000##FFFFFF
##2A1C871.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1c87;
/* rgb */ color: rgb(42, 28, 135);
/* oklch */ color: oklch(33.1% 0.166 278.1);
Tailwind
colors: {
  custom: {
    50: '#725bab',
    500: '#2a1c87',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c87;
$custom-light: #725bab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c87",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 247.85,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33063,
    "c": 0.16584,
    "h": 278.1
  },
  "luminance": 0.03072
}

Semantic roles & 50–950 ramp

primary
#2A1C87
secondary
#ABBA45
accent
#E93FD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1C87

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

Preview Lab → · Contrast checker → · Palette generator →

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