#2A1FAC#2A1FAC

#2A1FAC is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.6% C 0.208 H 273.4°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#2A1FAC
RGBrgb(42, 31, 172)
HSLhsl(245, 69%, 40%)
HSVhsv(245, 82%, 67%)
CMYKcmyk(75.6%, 82%, 0%, 32.5%)
CIE-LABlab(25.11, 49.77, -71.66)
CIE-LCHlch(25.11, 87.25, 304.78°)
OKLaboklab(37.64% 0.0124 -0.2073)
OKLCHoklch(37.64% 0.208 273.4)
XYZxyz(8.8887, 4.4498, 39.4122)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1FAC #A1AC1F
analogous
#1F5AAC #2A1FAC #711FAC
triadic
#2A1FAC #AC2A1F #1FAC2A
tetradic
#2A1FAC #AC1F5A #A1AC1F #1FAC71
square
#2A1FAC #AC1F5A #A1AC1F #1FAC71
split-complementary
#2A1FAC #AC711F #5AAC1F
monochromatic
#110C44 #1D1678 #2A1FAC #3C2FD9 #6D63E3

Accessibility & contrast

On white

11.11
#2A1FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2A1FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1FAC
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1FAC#FFFFFF#000000##FFFFFF
##2A1FAC1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B0
Deuteranopia (green-blind)
#0035AA
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a1fac;
/* rgb */ color: rgb(42, 31, 172);
/* oklch */ color: oklch(37.6% 0.208 273.4);
Tailwind
colors: {
  custom: {
    50: '#7a5fc6',
    500: '#2a1fac',
    950: '#000000',
  },
}
SCSS
$custom: #2a1fac;
$custom-light: #7a5fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1fac",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 172
  },
  "hsl": {
    "h": 244.681,
    "s": 69.458,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37636,
    "c": 0.20766,
    "h": 273.4
  },
  "luminance": 0.04451
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A1FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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