#2A1C97#2A1C97

#2A1C97 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.185 H 275.9°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#2A1C97
RGBrgb(42, 28, 151)
HSLhsl(247, 69%, 35%)
HSVhsv(247, 81%, 59%)
CMYKcmyk(72.2%, 81.5%, 0%, 40.8%)
CIE-LABlab(22.15, 44.70, -63.78)
CIE-LCHlch(22.15, 77.88, 305.02°)
OKLaboklab(34.87% 0.0191 -0.1844)
OKLCHoklch(34.87% 0.185 275.9)
XYZxyz(6.9542, 3.5565, 29.5921)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C97 #89971C
analogous
#1C4C97 #2A1C97 #671C97
triadic
#2A1C97 #972A1C #1C972A
tetradic
#2A1C97 #971C4C #89971C #1C9767
square
#2A1C97 #971C4C #89971C #1C9767
split-complementary
#2A1C97 #97671C #4C971C
monochromatic
#0D0930 #1C1263 #2A1C97 #3826CB #5F4FDE

Accessibility & contrast

On white

12.27
#2A1C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2A1C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1C97
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C97#FFFFFF#000000##FFFFFF
##2A1C971.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#002F95
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a1c97;
/* rgb */ color: rgb(42, 28, 151);
/* oklch */ color: oklch(34.9% 0.185 275.9);
Tailwind
colors: {
  custom: {
    50: '#765cb7',
    500: '#2a1c97',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c97;
$custom-light: #765cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c97",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 246.829,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34867,
    "c": 0.18536,
    "h": 275.9
  },
  "luminance": 0.03557
}

Semantic roles & 50–950 ramp

primary
#2A1C97
secondary
#B4C14E
accent
#EC3CD8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1C97

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

Preview Lab → · Contrast checker → · Palette generator →

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