#2A1FAB#2A1FAB

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

Color values

HEX#2A1FAB
RGBrgb(42, 31, 171)
HSLhsl(245, 69%, 40%)
HSVhsv(245, 82%, 67%)
CMYKcmyk(75.4%, 81.9%, 0%, 32.9%)
CIE-LABlab(24.99, 49.46, -71.26)
CIE-LCHlch(24.99, 86.74, 304.77°)
OKLaboklab(37.52% 0.0127 -0.2061)
OKLCHoklch(37.52% 0.207 273.5)
XYZxyz(8.7931, 4.4116, 38.9083)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1FAB #A0AB1F
analogous
#1F5AAB #2A1FAB #701FAB
triadic
#2A1FAB #AB2A1F #1FAB2A
tetradic
#2A1FAB #AB1F5A #A0AB1F #1FAB70
square
#2A1FAB #AB1F5A #A0AB1F #1FAB70
split-complementary
#2A1FAB #AB701F #5AAB1F
monochromatic
#110C43 #1D1677 #2A1FAB #3C2ED9 #6C62E3

Accessibility & contrast

On white

11.16
#2A1FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1FAB
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1FAB#FFFFFF#000000##FFFFFF
##2A1FAB1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AF
Deuteranopia (green-blind)
#0035A9
Tritanopia (blue-blind)
#004B66
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a1fab;
/* rgb */ color: rgb(42, 31, 171);
/* oklch */ color: oklch(37.5% 0.206 273.5);
Tailwind
colors: {
  custom: {
    50: '#7a5fc5',
    500: '#2a1fab',
    950: '#000000',
  },
}
SCSS
$custom: #2a1fab;
$custom-light: #7a5fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1fab",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 171
  },
  "hsl": {
    "h": 244.714,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.3752,
    "c": 0.2065,
    "h": 273.5
  },
  "luminance": 0.04412
}

Semantic roles & 50–950 ramp

primary
#2A1FAB
secondary
#BFC75E
accent
#EC3CDE
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A1FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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