#2A1893#2A1893

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

Color values

HEX#2A1893
RGBrgb(42, 24, 147)
HSLhsl(249, 72%, 34%)
HSVhsv(249, 84%, 58%)
CMYKcmyk(71.4%, 83.7%, 0%, 42.4%)
CIE-LABlab(21.02, 45.37, -63.17)
CIE-LCHlch(21.02, 77.77, 305.69°)
OKLaboklab(33.95% 0.0219 -0.1825)
OKLCHoklch(33.95% 0.184 276.9)
XYZxyz(6.5462, 3.2515, 27.8807)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1893 #819318
analogous
#184493 #2A1893 #671893
triadic
#2A1893 #932A18 #18932A
tetradic
#2A1893 #931844 #819318 #189367
square
#2A1893 #931844 #819318 #189367
split-complementary
#2A1893 #936718 #449318
monochromatic
#0C072A #1B0F5E #2A1893 #3921C8 #5C45E1

Accessibility & contrast

On white

12.72
#2A1893 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2A1893 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1893
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1893#FFFFFF#000000##FFFFFF
##2A18931.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003796
Deuteranopia (green-blind)
#002D91
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a1893;
/* rgb */ color: rgb(42, 24, 147);
/* oklch */ color: oklch(34.0% 0.184 276.9);
Tailwind
colors: {
  custom: {
    50: '#755ab4',
    500: '#2a1893',
    950: '#000000',
  },
}
SCSS
$custom: #2a1893;
$custom-light: #755ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1893",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 147
  },
  "hsl": {
    "h": 248.78,
    "s": 71.93,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33952,
    "c": 0.18384,
    "h": 276.9
  },
  "luminance": 0.03252
}

Semantic roles & 50–950 ramp

primary
#2A1893
secondary
#AFC245
accent
#EF39D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1893

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

Preview Lab → · Contrast checker → · Palette generator →

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