#2A1C8E#2A1C8E

#2A1C8E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.174 H 277.1°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#2A1C8E
RGBrgb(42, 28, 142)
HSLhsl(247, 67%, 33%)
HSVhsv(247, 80%, 56%)
CMYKcmyk(70.4%, 80.3%, 0%, 44.3%)
CIE-LABlab(21.11, 41.85, -59.91)
CIE-LCHlch(21.11, 73.08, 304.94°)
OKLaboklab(33.84% 0.0216 -0.1731)
OKLCHoklch(33.84% 0.174 277.1)
XYZxyz(6.2510, 3.2752, 25.8887)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C8E #808E1C
analogous
#1C478E #2A1C8E #631C8E
triadic
#2A1C8E #8E2A1C #1C8E2A
tetradic
#2A1C8E #8E1C47 #808E1C #1C8E63
square
#2A1C8E #8E1C47 #808E1C #1C8E63
split-complementary
#2A1C8E #8E631C #478E1C
monochromatic
#0C0828 #1B125B #2A1C8E #3926C1 #5B49DB

Accessibility & contrast

On white

12.69
#2A1C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2A1C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1C8E
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C8E#FFFFFF#000000##FFFFFF
##2A1C8E1.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a1c8e;
/* rgb */ color: rgb(42, 28, 142);
/* oklch */ color: oklch(33.8% 0.174 277.1);
Tailwind
colors: {
  custom: {
    50: '#745bb0',
    500: '#2a1c8e',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c8e;
$custom-light: #745bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c8e",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 247.368,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33844,
    "c": 0.17448,
    "h": 277.1
  },
  "luminance": 0.03276
}

Semantic roles & 50–950 ramp

primary
#2A1C8E
secondary
#AFBD49
accent
#EA3ED5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A1C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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