#2A1E99#2A1E99

#2A1E99 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.186 H 275.5°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#2A1E99
RGBrgb(42, 30, 153)
HSLhsl(246, 67%, 36%)
HSVhsv(246, 80%, 60%)
CMYKcmyk(72.5%, 80.4%, 0%, 40%)
CIE-LABlab(22.72, 44.33, -64.06)
CIE-LCHlch(22.72, 77.90, 304.68°)
OKLaboklab(35.34% 0.0177 -0.1852)
OKLCHoklch(35.34% 0.186 275.5)
XYZxyz(7.1670, 3.7200, 30.4711)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E99 #8D991E
analogous
#1E4F99 #2A1E99 #671E99
triadic
#2A1E99 #992A1E #1E992A
tetradic
#2A1E99 #991E4F #8D991E #1E9967
square
#2A1E99 #991E4F #8D991E #1E9967
split-complementary
#2A1E99 #99671E #4F991E
monochromatic
#0E0A33 #1C1466 #2A1E99 #3828CC #6154DD

Accessibility & contrast

On white

12.04
#2A1E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2A1E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1E99
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E99#FFFFFF#000000##FFFFFF
##2A1E991.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1e99;
/* rgb */ color: rgb(42, 30, 153);
/* oklch */ color: oklch(35.3% 0.186 275.5);
Tailwind
colors: {
  custom: {
    50: '#765db8',
    500: '#2a1e99',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e99;
$custom-light: #765db8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e99",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 153
  },
  "hsl": {
    "h": 245.854,
    "s": 67.213,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35336,
    "c": 0.18605,
    "h": 275.5
  },
  "luminance": 0.03721
}

Semantic roles & 50–950 ramp

primary
#2A1E99
secondary
#B6C152
accent
#EA3ED9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1E99

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

Preview Lab → · Contrast checker → · Palette generator →

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