#2A1C8F#2A1C8F

#2A1C8F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.176 H 277.0°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#2A1C8F
RGBrgb(42, 28, 143)
HSLhsl(247, 67%, 34%)
HSVhsv(247, 80%, 56%)
CMYKcmyk(70.6%, 80.4%, 0%, 43.9%)
CIE-LABlab(21.23, 42.17, -60.35)
CIE-LCHlch(21.23, 73.62, 304.95°)
OKLaboklab(33.96% 0.0213 -0.1744)
OKLCHoklch(33.96% 0.176 277)
XYZxyz(6.3264, 3.3053, 26.2859)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C8F #818F1C
analogous
#1C478F #2A1C8F #631C8F
triadic
#2A1C8F #8F2A1C #1C8F2A
tetradic
#2A1C8F #8F1C47 #818F1C #1C8F63
square
#2A1C8F #8F1C47 #818F1C #1C8F63
split-complementary
#2A1C8F #8F631C #478F1C
monochromatic
#0C0829 #1B125C #2A1C8F #3926C2 #5C4ADC

Accessibility & contrast

On white

12.64
#2A1C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1C8F
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C8F#FFFFFF#000000##FFFFFF
##2A1C8F1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a1c8f;
/* rgb */ color: rgb(42, 28, 143);
/* oklch */ color: oklch(34.0% 0.176 277.0);
Tailwind
colors: {
  custom: {
    50: '#745bb1',
    500: '#2a1c8f',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c8f;
$custom-light: #745bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c8f",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 247.304,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33957,
    "c": 0.1757,
    "h": 277
  },
  "luminance": 0.03306
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A1C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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