#2A1E8A#2A1E8A

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

Color values

HEX#2A1E8A
RGBrgb(42, 30, 138)
HSLhsl(247, 64%, 33%)
HSVhsv(247, 78%, 54%)
CMYKcmyk(69.6%, 78.3%, 0%, 45.9%)
CIE-LABlab(21.04, 39.49, -57.54)
CIE-LCHlch(21.04, 69.79, 304.46°)
OKLaboklab(33.66% 0.0216 -0.1663)
OKLCHoklch(33.66% 0.168 277.4)
XYZxyz(6.0051, 3.2552, 24.3517)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E8A #7E8A1E
analogous
#1E488A #2A1E8A #601E8A
triadic
#2A1E8A #8A2A1E #1E8A2A
tetradic
#2A1E8A #8A1E48 #7E8A1E #1E8A60
square
#2A1E8A #8A1E48 #7E8A1E #1E8A60
split-complementary
#2A1E8A #8A601E #488A1E
monochromatic
#0B0825 #1B1358 #2A1E8A #3929BC #5A4BD8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A1E8A#FFFFFF#000000##FFFFFF
##2A1E8A1.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)
#00378D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a1e8a;
/* rgb */ color: rgb(42, 30, 138);
/* oklch */ color: oklch(33.7% 0.168 277.4);
Tailwind
colors: {
  custom: {
    50: '#735cad',
    500: '#2a1e8a',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e8a;
$custom-light: #735cad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e8a",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 246.667,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33659,
    "c": 0.16766,
    "h": 277.4
  },
  "luminance": 0.03256
}

Semantic roles & 50–950 ramp

primary
#2A1E8A
secondary
#AEBA4A
accent
#E741D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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