#2A1C81#2A1C81

#2A1C81 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.158 H 279.1°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#2A1C81
RGBrgb(42, 28, 129)
HSLhsl(248, 64%, 31%)
HSVhsv(248, 78%, 51%)
CMYKcmyk(67.4%, 78.3%, 0%, 49.4%)
CIE-LABlab(19.67, 37.65, -54.14)
CIE-LCHlch(19.67, 65.94, 304.82°)
OKLaboklab(32.4% 0.0251 -0.1563)
OKLCHoklch(32.4% 0.158 279.1)
XYZxyz(5.3313, 2.9073, 21.0448)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C81 #73811C
analogous
#1C4081 #2A1C81 #5C1C81
triadic
#2A1C81 #812A1C #1C812A
tetradic
#2A1C81 #811C40 #73811C #1C815C
square
#2A1C81 #811C40 #73811C #1C815C
split-complementary
#2A1C81 #815C1C #40811C
monochromatic
#09061C #1A114F #2A1C81 #3A27B3 #5642D6

Accessibility & contrast

On white

13.28
#2A1C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2A1C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1C81
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C81#FFFFFF#000000##FFFFFF
##2A1C811.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a1c81;
/* rgb */ color: rgb(42, 28, 129);
/* oklch */ color: oklch(32.4% 0.158 279.1);
Tailwind
colors: {
  custom: {
    50: '#715ba7',
    500: '#2a1c81',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c81;
$custom-light: #715ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c81",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 248.317,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32404,
    "c": 0.15832,
    "h": 279.1
  },
  "luminance": 0.02908
}

Semantic roles & 50–950 ramp

primary
#2A1C81
secondary
#A5B444
accent
#E740D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1C81

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

Preview Lab → · Contrast checker → · Palette generator →

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