#2A1C91#2A1C91

#2A1C91 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.178 H 276.7°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#2A1C91
RGBrgb(42, 28, 145)
HSLhsl(247, 68%, 34%)
HSVhsv(247, 81%, 57%)
CMYKcmyk(71%, 80.7%, 0%, 43.1%)
CIE-LABlab(21.46, 42.81, -61.21)
CIE-LCHlch(21.46, 74.69, 304.96°)
OKLaboklab(34.18% 0.0208 -0.1769)
OKLCHoklch(34.18% 0.178 276.7)
XYZxyz(6.4793, 3.3665, 27.0909)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C91 #83911C
analogous
#1C4991 #2A1C91 #651C91
triadic
#2A1C91 #912A1C #1C912A
tetradic
#2A1C91 #911C49 #83911C #1C9165
square
#2A1C91 #911C49 #83911C #1C9165
split-complementary
#2A1C91 #91651C #49911C
monochromatic
#0C082A #1B125E #2A1C91 #3926C4 #5C4BDC

Accessibility & contrast

On white

12.55
#2A1C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2A1C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1C91
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C91#FFFFFF#000000##FFFFFF
##2A1C911.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003894
Deuteranopia (green-blind)
#002E8F
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a1c91;
/* rgb */ color: rgb(42, 28, 145);
/* oklch */ color: oklch(34.2% 0.178 276.7);
Tailwind
colors: {
  custom: {
    50: '#745cb2',
    500: '#2a1c91',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c91;
$custom-light: #745cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c91",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 145
  },
  "hsl": {
    "h": 247.179,
    "s": 67.63,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34183,
    "c": 0.17814,
    "h": 276.7
  },
  "luminance": 0.03367
}

Semantic roles & 50–950 ramp

primary
#2A1C91
secondary
#B1BE4A
accent
#EB3DD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1C91

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

Preview Lab → · Contrast checker → · Palette generator →

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