#2A1FA9#2A1FA9

#2A1FA9 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.3% C 0.204 H 273.7°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#2A1FA9
RGBrgb(42, 31, 169)
HSLhsl(245, 69%, 39%)
HSVhsv(245, 82%, 66%)
CMYKcmyk(75.1%, 81.7%, 0%, 33.7%)
CIE-LABlab(24.75, 48.85, -70.44)
CIE-LCHlch(24.75, 85.72, 304.74°)
OKLaboklab(37.29% 0.0132 -0.2037)
OKLCHoklch(37.29% 0.204 273.7)
XYZxyz(8.6039, 4.3359, 37.9119)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1FA9 #9EA91F
analogous
#1F59A9 #2A1FA9 #6F1FA9
triadic
#2A1FA9 #A92A1F #1FA92A
tetradic
#2A1FA9 #A91F59 #9EA91F #1FA96F
square
#2A1FA9 #A91F59 #9EA91F #1FA96F
split-complementary
#2A1FA9 #A96F1F #59A91F
monochromatic
#100C42 #1D1675 #2A1FA9 #3A2DD8 #6B60E2

Accessibility & contrast

On white

11.25
#2A1FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2A1FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1FA9
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1FA9#FFFFFF#000000##FFFFFF
##2A1FA91.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AD
Deuteranopia (green-blind)
#0034A7
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a1fa9;
/* rgb */ color: rgb(42, 31, 169);
/* oklch */ color: oklch(37.3% 0.204 273.7);
Tailwind
colors: {
  custom: {
    50: '#7a5fc4',
    500: '#2a1fa9',
    950: '#000000',
  },
}
SCSS
$custom: #2a1fa9;
$custom-light: #7a5fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1fa9",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 244.783,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37288,
    "c": 0.20418,
    "h": 273.7
  },
  "luminance": 0.04337
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A1FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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