#2A1C71#2A1C71

#2A1C71 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.138 H 282.2°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#2A1C71
RGBrgb(42, 28, 113)
HSLhsl(250, 60%, 28%)
HSVhsv(250, 75%, 44%)
CMYKcmyk(62.8%, 75.2%, 0%, 55.7%)
CIE-LABlab(17.98, 32.36, -46.67)
CIE-LCHlch(17.98, 56.79, 304.74°)
OKLaboklab(30.71% 0.029 -0.1345)
OKLCHoklch(30.71% 0.138 282.2)
XYZxyz(4.3498, 2.5147, 15.8758)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C71 #63711C
analogous
#1C3971 #2A1C71 #541C71
triadic
#2A1C71 #712A1C #1C712A
tetradic
#2A1C71 #711C39 #63711C #1C7154
square
#2A1C71 #711C39 #63711C #1C7154
split-complementary
#2A1C71 #71541C #39711C
monochromatic
#090619 #181040 #2A1C71 #3C28A2 #5239CE

Accessibility & contrast

On white

13.97
#2A1C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2A1C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1C71
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C71#FFFFFF#000000##FFFFFF
##2A1C711.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a1c71;
/* rgb */ color: rgb(42, 28, 113);
/* oklch */ color: oklch(30.7% 0.138 282.2);
Tailwind
colors: {
  custom: {
    50: '#6d5a9b',
    500: '#2a1c71',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c71;
$custom-light: #6d5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c71",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 113
  },
  "hsl": {
    "h": 249.882,
    "s": 60.284,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30706,
    "c": 0.13759,
    "h": 282.2
  },
  "luminance": 0.02515
}

Semantic roles & 50–950 ramp

primary
#2A1C71
secondary
#95A643
accent
#E344C9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2A1C71

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

Preview Lab → · Contrast checker → · Palette generator →

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