#2A1BC9#2A1BC9

#2A1BC9 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.7% C 0.243 H 271.4°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#2A1BC9
RGBrgb(42, 27, 201)
HSLhsl(245, 76%, 45%)
HSVhsv(245, 87%, 79%)
CMYKcmyk(79.1%, 86.6%, 0%, 21.2%)
CIE-LABlab(28.09, 59.98, -83.91)
CIE-LCHlch(28.09, 103.15, 305.56°)
OKLaboklab(40.7% 0.0058 -0.2427)
OKLCHoklch(40.7% 0.243 271.4)
XYZxyz(11.8858, 5.4918, 55.6806)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1BC9 #BAC91B
analogous
#1B63C9 #2A1BC9 #811BC9
triadic
#2A1BC9 #C92A1B #1BC92A
tetradic
#2A1BC9 #C91B63 #BAC91B #1BC981
square
#2A1BC9 #C91B63 #BAC91B #1BC981
split-complementary
#2A1BC9 #C9811B #63C91B
monochromatic
#130D5D #1F1493 #2A1BC9 #4B3CE5 #7D72EC

Accessibility & contrast

On white

10.01
#2A1BC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2A1BC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1BC9
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1BC9#FFFFFF#000000##FFFFFF
##2A1BC91.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ACD
Deuteranopia (green-blind)
#0039C6
Tritanopia (blue-blind)
#005777
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a1bc9;
/* rgb */ color: rgb(42, 27, 201);
/* oklch */ color: oklch(40.7% 0.243 271.4);
Tailwind
colors: {
  custom: {
    50: '#8260db',
    500: '#2a1bc9',
    950: '#000000',
  },
}
SCSS
$custom: #2a1bc9;
$custom-light: #8260db;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1bc9",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 201
  },
  "hsl": {
    "h": 245.172,
    "s": 76.316,
    "l": 44.706
  },
  "oklch": {
    "l": 0.40701,
    "c": 0.24274,
    "h": 271.4
  },
  "luminance": 0.05493
}

Semantic roles & 50–950 ramp

primary
#2A1BC9
secondary
#CAD36D
accent
#F335E3
background
#F9F5FD
surface
#F1EAFB
border
#CBC6D4
text
#0D0515
muted
#7E7983

Preview Lab

Preview with #2A1BC9

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

Preview Lab → · Contrast checker → · Palette generator →

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