#2A1A93#2A1A93

#2A1A93 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.2% C 0.182 H 276.7°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#2A1A93
RGBrgb(42, 26, 147)
HSLhsl(248, 70%, 34%)
HSVhsv(248, 82%, 58%)
CMYKcmyk(71.4%, 82.3%, 0%, 42.4%)
CIE-LABlab(21.35, 44.42, -62.63)
CIE-LCHlch(21.35, 76.79, 305.35°)
OKLaboklab(34.17% 0.0211 -0.181)
OKLCHoklch(34.17% 0.182 276.7)
XYZxyz(6.5890, 3.3370, 27.8950)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A93 #83931A
analogous
#1A4793 #2A1A93 #671A93
triadic
#2A1A93 #932A1A #1A932A
tetradic
#2A1A93 #931A47 #83931A #1A9367
square
#2A1A93 #931A47 #83931A #1A9367
split-complementary
#2A1A93 #93671A #47931A
monochromatic
#0C082B #1B115F #2A1A93 #3923C7 #5D49DF

Accessibility & contrast

On white

12.59
#2A1A93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2A1A93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A93
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A93#FFFFFF#000000##FFFFFF
##2A1A931.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003896
Deuteranopia (green-blind)
#002E91
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a1a93;
/* rgb */ color: rgb(42, 26, 147);
/* oklch */ color: oklch(34.2% 0.182 276.7);
Tailwind
colors: {
  custom: {
    50: '#755bb4',
    500: '#2a1a93',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a93;
$custom-light: #755bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a93",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 147
  },
  "hsl": {
    "h": 247.934,
    "s": 69.942,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34175,
    "c": 0.18225,
    "h": 276.7
  },
  "luminance": 0.03338
}

Semantic roles & 50–950 ramp

primary
#2A1A93
secondary
#B1C048
accent
#ED3BD5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1A93

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

Preview Lab → · Contrast checker → · Palette generator →

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