#2A1C93#2A1C93

#2A1C93 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.4% C 0.181 H 276.4°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#2A1C93
RGBrgb(42, 28, 147)
HSLhsl(247, 68%, 34%)
HSVhsv(247, 81%, 58%)
CMYKcmyk(71.4%, 81%, 0%, 42.4%)
CIE-LABlab(21.68, 43.44, -62.07)
CIE-LCHlch(21.68, 75.76, 304.98°)
OKLaboklab(34.41% 0.0202 -0.1794)
OKLCHoklch(34.41% 0.181 276.4)
XYZxyz(6.6348, 3.4287, 27.9103)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C93 #85931C
analogous
#1C4A93 #2A1C93 #661C93
triadic
#2A1C93 #932A1C #1C932A
tetradic
#2A1C93 #931C4A #85931C #1C9366
square
#2A1C93 #931C4A #85931C #1C9366
split-complementary
#2A1C93 #93661C #4A931C
monochromatic
#0D082C #1B1260 #2A1C93 #3926C6 #5D4CDD

Accessibility & contrast

On white

12.46
#2A1C93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1C93
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C93#FFFFFF#000000##FFFFFF
##2A1C931.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003996
Deuteranopia (green-blind)
#002F91
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a1c93;
/* rgb */ color: rgb(42, 28, 147);
/* oklch */ color: oklch(34.4% 0.181 276.4);
Tailwind
colors: {
  custom: {
    50: '#755cb4',
    500: '#2a1c93',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c93;
$custom-light: #755cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c93",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 147
  },
  "hsl": {
    "h": 247.059,
    "s": 68,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3441,
    "c": 0.18056,
    "h": 276.4
  },
  "luminance": 0.03429
}

Semantic roles & 50–950 ramp

primary
#2A1C93
secondary
#B2BF4C
accent
#EB3DD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1C93

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

Preview Lab → · Contrast checker → · Palette generator →

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