#2A1C7D#2A1C7D

#2A1C7D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.153 H 279.8°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#2A1C7D
RGBrgb(42, 28, 125)
HSLhsl(249, 63%, 30%)
HSVhsv(249, 78%, 49%)
CMYKcmyk(66.4%, 77.6%, 0%, 51%)
CIE-LABlab(19.24, 36.34, -52.31)
CIE-LCHlch(19.24, 63.70, 304.79°)
OKLaboklab(31.97% 0.0261 -0.151)
OKLCHoklch(31.97% 0.153 279.8)
XYZxyz(5.0706, 2.8030, 19.6719)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C7D #6F7D1C
analogous
#1C3E7D #2A1C7D #5B1C7D
triadic
#2A1C7D #7D2A1C #1C7D2A
tetradic
#2A1C7D #7D1C3E #6F7D1C #1C7D5B
square
#2A1C7D #7D1C3E #6F7D1C #1C7D5B
split-complementary
#2A1C7D #7D5B1C #3E7D1C
monochromatic
#080619 #19114B #2A1C7D #3B27AF #553FD4

Accessibility & contrast

On white

13.46
#2A1C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2A1C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1C7D
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C7D#FFFFFF#000000##FFFFFF
##2A1C7D1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1c7d;
/* rgb */ color: rgb(42, 28, 125);
/* oklch */ color: oklch(32.0% 0.153 279.8);
Tailwind
colors: {
  custom: {
    50: '#705aa4',
    500: '#2a1c7d',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c7d;
$custom-light: #705aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c7d",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 248.66,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.31971,
    "c": 0.15323,
    "h": 279.8
  },
  "luminance": 0.02803
}

Semantic roles & 50–950 ramp

primary
#2A1C7D
secondary
#A1B144
accent
#E641CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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