#2A1E8E#2A1E8E

#2A1E8E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.173 H 276.8°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#2A1E8E
RGBrgb(42, 30, 142)
HSLhsl(246, 65%, 34%)
HSVhsv(246, 79%, 56%)
CMYKcmyk(70.4%, 78.9%, 0%, 44.3%)
CIE-LABlab(21.48, 40.80, -59.31)
CIE-LCHlch(21.48, 71.98, 304.52°)
OKLaboklab(34.1% 0.0206 -0.1714)
OKLCHoklch(34.1% 0.173 276.8)
XYZxyz(6.3000, 3.3732, 25.9050)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E8E #828E1E
analogous
#1E4A8E #2A1E8E #621E8E
triadic
#2A1E8E #8E2A1E #1E8E2A
tetradic
#2A1E8E #8E1E4A #828E1E #1E8E62
square
#2A1E8E #8E1E4A #828E1E #1E8E62
split-complementary
#2A1E8E #8E621E #4A8E1E
monochromatic
#0C0929 #1B135B #2A1E8E #3929C1 #5C4DD9

Accessibility & contrast

On white

12.54
#2A1E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1E8E
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E8E#FFFFFF#000000##FFFFFF
##2A1E8E1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a1e8e;
/* rgb */ color: rgb(42, 30, 142);
/* oklch */ color: oklch(34.1% 0.173 276.8);
Tailwind
colors: {
  custom: {
    50: '#735db0',
    500: '#2a1e8e',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e8e;
$custom-light: #735db0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e8e",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 142
  },
  "hsl": {
    "h": 246.429,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34101,
    "c": 0.17263,
    "h": 276.8
  },
  "luminance": 0.03374
}

Semantic roles & 50–950 ramp

primary
#2A1E8E
secondary
#B0BC4C
accent
#E840D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A1E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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