#2A1C94#2A1C94

#2A1C94 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.182 H 276.3°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#2A1C94
RGBrgb(42, 28, 148)
HSLhsl(247, 68%, 35%)
HSVhsv(247, 81%, 58%)
CMYKcmyk(71.6%, 81.1%, 0%, 42%)
CIE-LABlab(21.80, 43.75, -62.50)
CIE-LCHlch(21.80, 76.29, 304.99°)
OKLaboklab(34.52% 0.02 -0.1807)
OKLCHoklch(34.52% 0.182 276.3)
XYZxyz(6.7136, 3.4602, 28.3253)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C94 #86941C
analogous
#1C4A94 #2A1C94 #661C94
triadic
#2A1C94 #942A1C #1C942A
tetradic
#2A1C94 #941C4A #86941C #1C9466
square
#2A1C94 #941C4A #86941C #1C9466
split-complementary
#2A1C94 #94661C #4A941C
monochromatic
#0D092D #1B1261 #2A1C94 #3926C7 #5E4DDD

Accessibility & contrast

On white

12.41
#2A1C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2A1C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1C94
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C94#FFFFFF#000000##FFFFFF
##2A1C941.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#002F92
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a1c94;
/* rgb */ color: rgb(42, 28, 148);
/* oklch */ color: oklch(34.5% 0.182 276.3);
Tailwind
colors: {
  custom: {
    50: '#755cb5',
    500: '#2a1c94',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c94;
$custom-light: #755cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c94",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 148
  },
  "hsl": {
    "h": 247,
    "s": 68.182,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34524,
    "c": 0.18176,
    "h": 276.3
  },
  "luminance": 0.03461
}

Semantic roles & 50–950 ramp

primary
#2A1C94
secondary
#B2C04C
accent
#EB3DD7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1C94

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

Preview Lab → · Contrast checker → · Palette generator →

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