#2A1C9D#2A1C9D

#2A1C9D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.192 H 275.2°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#2A1C9D
RGBrgb(42, 28, 157)
HSLhsl(247, 70%, 36%)
HSVhsv(247, 82%, 62%)
CMYKcmyk(73.2%, 82.2%, 0%, 38.4%)
CIE-LABlab(22.85, 46.57, -66.30)
CIE-LCHlch(22.85, 81.02, 305.08°)
OKLaboklab(35.56% 0.0175 -0.1917)
OKLCHoklch(35.56% 0.192 275.2)
XYZxyz(7.4539, 3.7563, 32.2240)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C9D #8F9D1C
analogous
#1C4F9D #2A1C9D #6B1C9D
triadic
#2A1C9D #9D2A1C #1C9D2A
tetradic
#2A1C9D #9D1C4F #8F9D1C #1C9D6B
square
#2A1C9D #9D1C4F #8F9D1C #1C9D6B
split-complementary
#2A1C9D #9D6B1C #4F9D1C
monochromatic
#0E0935 #1C1369 #2A1C9D #3825D1 #6253E0

Accessibility & contrast

On white

11.99
#2A1C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A1C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1C9D
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C9D#FFFFFF#000000##FFFFFF
##2A1C9D1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA1
Deuteranopia (green-blind)
#00319B
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a1c9d;
/* rgb */ color: rgb(42, 28, 157);
/* oklch */ color: oklch(35.6% 0.192 275.2);
Tailwind
colors: {
  custom: {
    50: '#775cbb',
    500: '#2a1c9d',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c9d;
$custom-light: #775cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c9d",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 157
  },
  "hsl": {
    "h": 246.512,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35559,
    "c": 0.19248,
    "h": 275.2
  },
  "luminance": 0.03757
}

Semantic roles & 50–950 ramp

primary
#2A1C9D
secondary
#B7C351
accent
#ED3BD9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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