#2A1FA7#2A1FA7

#2A1FA7 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.1% C 0.202 H 273.9°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#2A1FA7
RGBrgb(42, 31, 167)
HSLhsl(245, 69%, 39%)
HSVhsv(245, 81%, 65%)
CMYKcmyk(74.9%, 81.4%, 0%, 34.5%)
CIE-LABlab(24.52, 48.23, -69.62)
CIE-LCHlch(24.52, 84.69, 304.71°)
OKLaboklab(37.06% 0.0137 -0.2014)
OKLCHoklch(37.06% 0.202 273.9)
XYZxyz(8.4176, 4.2614, 36.9306)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1FA7 #9CA71F
analogous
#1F58A7 #2A1FA7 #6E1FA7
triadic
#2A1FA7 #A72A1F #1FA72A
tetradic
#2A1FA7 #A71F58 #9CA71F #1FA76E
square
#2A1FA7 #A71F58 #9CA71F #1FA76E
split-complementary
#2A1FA7 #A76E1F #58A71F
monochromatic
#100C40 #1D1573 #2A1FA7 #392BD8 #6A5FE1

Accessibility & contrast

On white

11.34
#2A1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2A1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1FA7
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1FA7#FFFFFF#000000##FFFFFF
##2A1FA71.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AB
Deuteranopia (green-blind)
#0034A5
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a1fa7;
/* rgb */ color: rgb(42, 31, 167);
/* oklch */ color: oklch(37.1% 0.202 273.9);
Tailwind
colors: {
  custom: {
    50: '#795fc3',
    500: '#2a1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #2a1fa7;
$custom-light: #795fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1fa7",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 244.853,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37057,
    "c": 0.20184,
    "h": 273.9
  },
  "luminance": 0.04262
}

Semantic roles & 50–950 ramp

primary
#2A1FA7
secondary
#BDC65C
accent
#EC3CDD
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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