#2A1C7C#2A1C7C

#2A1C7C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.152 H 280.0°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#2A1C7C
RGBrgb(42, 28, 124)
HSLhsl(249, 63%, 30%)
HSVhsv(249, 77%, 49%)
CMYKcmyk(66.1%, 77.4%, 0%, 51.4%)
CIE-LABlab(19.13, 36.01, -51.85)
CIE-LCHlch(19.13, 63.13, 304.78°)
OKLaboklab(31.86% 0.0264 -0.1496)
OKLCHoklch(31.86% 0.152 280)
XYZxyz(5.0070, 2.7776, 19.3371)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C7C #6E7C1C
analogous
#1C3E7C #2A1C7C #5A1C7C
triadic
#2A1C7C #7C2A1C #1C7C2A
tetradic
#2A1C7C #7C1C3E #6E7C1C #1C7C5A
square
#2A1C7C #7C1C3E #6E7C1C #1C7C5A
split-complementary
#2A1C7C #7C5A1C #3E7C1C
monochromatic
#080619 #19114A #2A1C7C #3B27AE #553FD4

Accessibility & contrast

On white

13.50
#2A1C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1C7C
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C7C#FFFFFF#000000##FFFFFF
##2A1C7C1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a1c7c;
/* rgb */ color: rgb(42, 28, 124);
/* oklch */ color: oklch(31.9% 0.152 280.0);
Tailwind
colors: {
  custom: {
    50: '#705aa3',
    500: '#2a1c7c',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c7c;
$custom-light: #705aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c7c",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 248.75,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31863,
    "c": 0.15194,
    "h": 280
  },
  "luminance": 0.02778
}

Semantic roles & 50–950 ramp

primary
#2A1C7C
secondary
#A0B044
accent
#E642CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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