#2A1E9A#2A1E9A

#2A1E9A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.187 H 275.4°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#2A1E9A
RGBrgb(42, 30, 154)
HSLhsl(246, 67%, 36%)
HSVhsv(246, 81%, 60%)
CMYKcmyk(72.7%, 80.5%, 0%, 39.6%)
CIE-LABlab(22.84, 44.64, -64.48)
CIE-LCHlch(22.84, 78.43, 304.70°)
OKLaboklab(35.45% 0.0175 -0.1864)
OKLCHoklch(35.45% 0.187 275.4)
XYZxyz(7.2499, 3.7532, 30.9079)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E9A #8E9A1E
analogous
#1E509A #2A1E9A #681E9A
triadic
#2A1E9A #9A2A1E #1E9A2A
tetradic
#2A1E9A #9A1E50 #8E9A1E #1E9A68
square
#2A1E9A #9A1E50 #8E9A1E #1E9A68
split-complementary
#2A1E9A #9A681E #509A1E
monochromatic
#0E0A34 #1C1467 #2A1E9A #3828CD #6255DE

Accessibility & contrast

On white

11.99
#2A1E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A1E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1E9A
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E9A#FFFFFF#000000##FFFFFF
##2A1E9A1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9D
Deuteranopia (green-blind)
#003198
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a1e9a;
/* rgb */ color: rgb(42, 30, 154);
/* oklch */ color: oklch(35.4% 0.187 275.4);
Tailwind
colors: {
  custom: {
    50: '#765db9',
    500: '#2a1e9a',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e9a;
$custom-light: #765db9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e9a",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 154
  },
  "hsl": {
    "h": 245.806,
    "s": 67.391,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35449,
    "c": 0.18726,
    "h": 275.4
  },
  "luminance": 0.03754
}

Semantic roles & 50–950 ramp

primary
#2A1E9A
secondary
#B6C153
accent
#EA3EDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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