#2A1AB3#2A1AB3

#2A1AB3 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 38.0% C 0.219 H 273.1°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#2A1AB3
RGBrgb(42, 26, 179)
HSLhsl(246, 75%, 40%)
HSVhsv(246, 85%, 70%)
CMYKcmyk(76.5%, 85.5%, 0%, 29.8%)
CIE-LABlab(25.21, 54.06, -75.68)
CIE-LCHlch(25.21, 93.01, 305.54°)
OKLaboklab(37.95% 0.0119 -0.2188)
OKLCHoklch(37.95% 0.219 273.1)
XYZxyz(9.4582, 4.4847, 43.0062)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1AB3 #A3B31A
analogous
#1A56B3 #2A1AB3 #771AB3
triadic
#2A1AB3 #B32A1A #1AB32A
tetradic
#2A1AB3 #B31A56 #A3B31A #1AB377
square
#2A1AB3 #B31A56 #A3B31A #1AB377
split-complementary
#2A1AB3 #B3771A #56B31A
monochromatic
#110A48 #1D127E #2A1AB3 #3D2AE0 #6E60E8

Accessibility & contrast

On white

11.07
#2A1AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2A1AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1AB3
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1AB3#FFFFFF#000000##FFFFFF
##2A1AB31.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B7
Deuteranopia (green-blind)
#0034B1
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a1ab3;
/* rgb */ color: rgb(42, 26, 179);
/* oklch */ color: oklch(38.0% 0.219 273.1);
Tailwind
colors: {
  custom: {
    50: '#7d5dcb',
    500: '#2a1ab3',
    950: '#000000',
  },
}
SCSS
$custom: #2a1ab3;
$custom-light: #7d5dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1ab3",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 179
  },
  "hsl": {
    "h": 246.275,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.37953,
    "c": 0.21917,
    "h": 273.1
  },
  "luminance": 0.04486
}

Semantic roles & 50–950 ramp

primary
#2A1AB3
secondary
#C0CC5D
accent
#F137DE
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2A1AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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