#2A1EAC#2A1EAC

#2A1EAC is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.5% C 0.208 H 273.5°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#2A1EAC
RGBrgb(42, 30, 172)
HSLhsl(245, 70%, 40%)
HSVhsv(245, 83%, 67%)
CMYKcmyk(75.6%, 82.6%, 0%, 32.5%)
CIE-LABlab(24.95, 50.24, -71.93)
CIE-LCHlch(24.95, 87.73, 304.93°)
OKLaboklab(37.53% 0.0127 -0.208)
OKLCHoklch(37.53% 0.208 273.5)
XYZxyz(8.8630, 4.3984, 39.4036)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1EAC #A0AC1E
analogous
#1E59AC #2A1EAC #711EAC
triadic
#2A1EAC #AC2A1E #1EAC2A
tetradic
#2A1EAC #AC1E59 #A0AC1E #1EAC71
square
#2A1EAC #AC1E59 #A0AC1E #1EAC71
split-complementary
#2A1EAC #AC711E #59AC1E
monochromatic
#110C44 #1D1578 #2A1EAC #3C2DDA #6C61E3

Accessibility & contrast

On white

11.17
#2A1EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2A1EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1EAC
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1EAC#FFFFFF#000000##FFFFFF
##2A1EAC1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B0
Deuteranopia (green-blind)
#0034AA
Tritanopia (blue-blind)
#004B67
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a1eac;
/* rgb */ color: rgb(42, 30, 172);
/* oklch */ color: oklch(37.5% 0.208 273.5);
Tailwind
colors: {
  custom: {
    50: '#7b5fc6',
    500: '#2a1eac',
    950: '#000000',
  },
}
SCSS
$custom: #2a1eac;
$custom-light: #7b5fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1eac",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 172
  },
  "hsl": {
    "h": 245.07,
    "s": 70.297,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37526,
    "c": 0.20843,
    "h": 273.5
  },
  "luminance": 0.04399
}

Semantic roles & 50–950 ramp

primary
#2A1EAC
secondary
#BFC85E
accent
#ED3BDE
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A1EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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