#2A1B9E#2A1B9E

#2A1B9E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.6% C 0.194 H 275.2°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#2A1B9E
RGBrgb(42, 27, 158)
HSLhsl(247, 71%, 36%)
HSVhsv(247, 83%, 62%)
CMYKcmyk(73.4%, 82.9%, 0%, 38%)
CIE-LABlab(22.81, 47.35, -66.98)
CIE-LCHlch(22.81, 82.03, 305.25°)
OKLaboklab(35.56% 0.0175 -0.1936)
OKLCHoklch(35.56% 0.194 275.2)
XYZxyz(7.5163, 3.7440, 32.6677)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B9E #8F9E1B
analogous
#1B4E9E #2A1B9E #6C1B9E
triadic
#2A1B9E #9E2A1B #1B9E2A
tetradic
#2A1B9E #9E1B4E #8F9E1B #1B9E6C
square
#2A1B9E #9E1B4E #8F9E1B #1B9E6C
split-complementary
#2A1B9E #9E6C1B #4E9E1B
monochromatic
#0E0935 #1C126A #2A1B9E #3824D2 #6252E1

Accessibility & contrast

On white

12.01
#2A1B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A1B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B9E
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B9E#FFFFFF#000000##FFFFFF
##2A1B9E1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00309C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a1b9e;
/* rgb */ color: rgb(42, 27, 158);
/* oklch */ color: oklch(35.6% 0.194 275.2);
Tailwind
colors: {
  custom: {
    50: '#775cbc',
    500: '#2a1b9e',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b9e;
$custom-light: #775cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b9e",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 246.87,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35563,
    "c": 0.19444,
    "h": 275.2
  },
  "luminance": 0.03745
}

Semantic roles & 50–950 ramp

primary
#2A1B9E
secondary
#B7C451
accent
#EE3AD9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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