#2A1FAD#2A1FAD

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

Color values

HEX#2A1FAD
RGBrgb(42, 31, 173)
HSLhsl(245, 70%, 40%)
HSVhsv(245, 82%, 68%)
CMYKcmyk(75.7%, 82.1%, 0%, 32.2%)
CIE-LABlab(25.22, 50.08, -72.07)
CIE-LCHlch(25.22, 87.76, 304.80°)
OKLaboklab(37.75% 0.0122 -0.2085)
OKLCHoklch(37.75% 0.209 273.3)
XYZxyz(8.9851, 4.4884, 39.9199)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1FAD #A2AD1F
analogous
#1F5BAD #2A1FAD #711FAD
triadic
#2A1FAD #AD2A1F #1FAD2A
tetradic
#2A1FAD #AD1F5B #A2AD1F #1FAD71
square
#2A1FAD #AD1F5B #A2AD1F #1FAD71
split-complementary
#2A1FAD #AD711F #5BAD1F
monochromatic
#110C45 #1D1679 #2A1FAD #3D2FDA #6D63E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A1FAD#FFFFFF#000000##FFFFFF
##2A1FAD1.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)
#0042B1
Deuteranopia (green-blind)
#0035AB
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a1fad;
/* rgb */ color: rgb(42, 31, 173);
/* oklch */ color: oklch(37.8% 0.209 273.3);
Tailwind
colors: {
  custom: {
    50: '#7b5fc7',
    500: '#2a1fad',
    950: '#000000',
  },
}
SCSS
$custom: #2a1fad;
$custom-light: #7b5fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1fad",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 173
  },
  "hsl": {
    "h": 244.648,
    "s": 69.608,
    "l": 40
  },
  "oklch": {
    "l": 0.37752,
    "c": 0.20882,
    "h": 273.3
  },
  "luminance": 0.04489
}

Semantic roles & 50–950 ramp

primary
#2A1FAD
secondary
#C0C860
accent
#EC3BDF
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A1FAD

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

Preview Lab → · Contrast checker → · Palette generator →

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