#2A1BB3#2A1BB3

#2A1BB3 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 38.0% C 0.219 H 273.1°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#2A1BB3
RGBrgb(42, 27, 179)
HSLhsl(246, 74%, 40%)
HSVhsv(246, 85%, 70%)
CMYKcmyk(76.5%, 84.9%, 0%, 29.8%)
CIE-LABlab(25.35, 53.65, -75.46)
CIE-LCHlch(25.35, 92.58, 305.41°)
OKLaboklab(38.05% 0.0117 -0.2182)
OKLCHoklch(38.05% 0.219 273.1)
XYZxyz(9.4807, 4.5298, 43.0138)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1BB3 #A4B31B
analogous
#1B58B3 #2A1BB3 #761BB3
triadic
#2A1BB3 #B32A1B #1BB32A
tetradic
#2A1BB3 #B31B58 #A4B31B #1BB376
square
#2A1BB3 #B31B58 #A4B31B #1BB376
split-complementary
#2A1BB3 #B3761B #58B31B
monochromatic
#110B49 #1E137E #2A1BB3 #3E2CDF #6E61E7

Accessibility & contrast

On white

11.02
#2A1BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2A1BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1BB3
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1BB3#FFFFFF#000000##FFFFFF
##2A1BB31.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B7
Deuteranopia (green-blind)
#0035B1
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a1bb3;
/* rgb */ color: rgb(42, 27, 179);
/* oklch */ color: oklch(38.0% 0.219 273.1);
Tailwind
colors: {
  custom: {
    50: '#7c5ecb',
    500: '#2a1bb3',
    950: '#000000',
  },
}
SCSS
$custom: #2a1bb3;
$custom-light: #7c5ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1bb3",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 179
  },
  "hsl": {
    "h": 245.921,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38047,
    "c": 0.21852,
    "h": 273.1
  },
  "luminance": 0.04531
}

Semantic roles & 50–950 ramp

primary
#2A1BB3
secondary
#C1CC5E
accent
#F037DE
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2A1BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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