#2A1C7E#2A1C7E

#2A1C7E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.155 H 279.6°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#2A1C7E
RGBrgb(42, 28, 126)
HSLhsl(249, 64%, 30%)
HSVhsv(249, 78%, 49%)
CMYKcmyk(66.7%, 77.8%, 0%, 50.6%)
CIE-LABlab(19.34, 36.67, -52.77)
CIE-LCHlch(19.34, 64.26, 304.80°)
OKLaboklab(32.08% 0.0259 -0.1523)
OKLCHoklch(32.08% 0.155 279.6)
XYZxyz(5.1348, 2.8287, 20.0100)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C7E #707E1C
analogous
#1C3F7E #2A1C7E #5B1C7E
triadic
#2A1C7E #7E2A1C #1C7E2A
tetradic
#2A1C7E #7E1C3F #707E1C #1C7E5B
square
#2A1C7E #7E1C3F #707E1C #1C7E5B
split-complementary
#2A1C7E #7E5B1C #3F7E1C
monochromatic
#09061A #19114C #2A1C7E #3B27B0 #5540D5

Accessibility & contrast

On white

13.41
#2A1C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2A1C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1C7E
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C7E#FFFFFF#000000##FFFFFF
##2A1C7E1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1c7e;
/* rgb */ color: rgb(42, 28, 126);
/* oklch */ color: oklch(32.1% 0.155 279.6);
Tailwind
colors: {
  custom: {
    50: '#705aa4',
    500: '#2a1c7e',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c7e;
$custom-light: #705aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c7e",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 248.571,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32079,
    "c": 0.15451,
    "h": 279.6
  },
  "luminance": 0.02829
}

Semantic roles & 50–950 ramp

primary
#2A1C7E
secondary
#A2B244
accent
#E741CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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