#2A1C9B#2A1C9B

#2A1C9B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.190 H 275.4°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#2A1C9B
RGBrgb(42, 28, 155)
HSLhsl(247, 69%, 36%)
HSVhsv(247, 82%, 61%)
CMYKcmyk(72.9%, 81.9%, 0%, 39.2%)
CIE-LABlab(22.61, 45.95, -65.46)
CIE-LCHlch(22.61, 79.98, 305.06°)
OKLaboklab(35.33% 0.018 -0.1893)
OKLCHoklch(35.33% 0.19 275.4)
XYZxyz(7.2845, 3.6886, 31.3321)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C9B #8D9B1C
analogous
#1C4D9B #2A1C9B #691C9B
triadic
#2A1C9B #9B2A1C #1C9B2A
tetradic
#2A1C9B #9B1C4D #8D9B1C #1C9B69
square
#2A1C9B #9B1C4D #8D9B1C #1C9B69
split-complementary
#2A1C9B #9B691C #4D9B1C
monochromatic
#0E0933 #1C1367 #2A1C9B #3825CF #6152E0

Accessibility & contrast

On white

12.08
#2A1C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2A1C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1C9B
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C9B#FFFFFF#000000##FFFFFF
##2A1C9B1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9E
Deuteranopia (green-blind)
#003099
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a1c9b;
/* rgb */ color: rgb(42, 28, 155);
/* oklch */ color: oklch(35.3% 0.190 275.4);
Tailwind
colors: {
  custom: {
    50: '#775cba',
    500: '#2a1c9b',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c9b;
$custom-light: #775cba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c9b",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 155
  },
  "hsl": {
    "h": 246.614,
    "s": 69.399,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35327,
    "c": 0.19011,
    "h": 275.4
  },
  "luminance": 0.03689
}

Semantic roles & 50–950 ramp

primary
#2A1C9B
secondary
#B6C350
accent
#EC3CD9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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