#2A1E96#2A1E96

#2A1E96 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.182 H 275.8°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#2A1E96
RGBrgb(42, 30, 150)
HSLhsl(246, 67%, 35%)
HSVhsv(246, 80%, 59%)
CMYKcmyk(72%, 80%, 0%, 41.2%)
CIE-LABlab(22.38, 43.37, -62.78)
CIE-LCHlch(22.38, 76.30, 304.64°)
OKLaboklab(35% 0.0185 -0.1815)
OKLCHoklch(35% 0.182 275.8)
XYZxyz(6.9223, 3.6221, 29.1826)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E96 #8A961E
analogous
#1E4E96 #2A1E96 #661E96
triadic
#2A1E96 #962A1E #1E962A
tetradic
#2A1E96 #961E4E #8A961E #1E9666
square
#2A1E96 #961E4E #8A961E #1E9666
split-complementary
#2A1E96 #96661E #4E961E
monochromatic
#0D0A30 #1C1463 #2A1E96 #3828C9 #6052DC

Accessibility & contrast

On white

12.18
#2A1E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2A1E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1E96
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E96#FFFFFF#000000##FFFFFF
##2A1E961.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003094
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a1e96;
/* rgb */ color: rgb(42, 30, 150);
/* oklch */ color: oklch(35.0% 0.182 275.8);
Tailwind
colors: {
  custom: {
    50: '#755db6',
    500: '#2a1e96',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e96;
$custom-light: #755db6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e96",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 246,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34996,
    "c": 0.18242,
    "h": 275.8
  },
  "luminance": 0.03623
}

Semantic roles & 50–950 ramp

primary
#2A1E96
secondary
#B4BF50
accent
#EA3ED8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1E96

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

Preview Lab → · Contrast checker → · Palette generator →

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