#2A1FA6#2A1FA6

#2A1FA6 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 36.9% C 0.201 H 274.0°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#2A1FA6
RGBrgb(42, 31, 166)
HSLhsl(245, 69%, 39%)
HSVhsv(245, 81%, 65%)
CMYKcmyk(74.7%, 81.3%, 0%, 34.9%)
CIE-LABlab(24.40, 47.92, -69.21)
CIE-LCHlch(24.40, 84.18, 304.70°)
OKLaboklab(36.94% 0.014 -0.2002)
OKLCHoklch(36.94% 0.201 274)
XYZxyz(8.3255, 4.2245, 36.4456)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1FA6 #9BA61F
analogous
#1F57A6 #2A1FA6 #6D1FA6
triadic
#2A1FA6 #A62A1F #1FA62A
tetradic
#2A1FA6 #A61F57 #9BA61F #1FA66D
square
#2A1FA6 #A61F57 #9BA61F #1FA66D
split-complementary
#2A1FA6 #A66D1F #57A61F
monochromatic
#100C3F #1D1572 #2A1FA6 #392BD7 #695EE1

Accessibility & contrast

On white

11.38
#2A1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1FA6
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1FA6#FFFFFF#000000##FFFFFF
##2A1FA61.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AA
Deuteranopia (green-blind)
#0034A4
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a1fa6;
/* rgb */ color: rgb(42, 31, 166);
/* oklch */ color: oklch(36.9% 0.201 274.0);
Tailwind
colors: {
  custom: {
    50: '#795fc2',
    500: '#2a1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #2a1fa6;
$custom-light: #795fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1fa6",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 244.889,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.36942,
    "c": 0.20067,
    "h": 274
  },
  "luminance": 0.04225
}

Semantic roles & 50–950 ramp

primary
#2A1FA6
secondary
#BDC55B
accent
#EB3CDD
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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