#2A1B80#2A1B80

#2A1B80 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.158 H 279.5°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#2A1B80
RGBrgb(42, 27, 128)
HSLhsl(249, 65%, 30%)
HSVhsv(249, 79%, 50%)
CMYKcmyk(67.2%, 78.9%, 0%, 49.8%)
CIE-LABlab(19.37, 37.87, -54.00)
CIE-LCHlch(19.37, 65.96, 305.04°)
OKLaboklab(32.16% 0.026 -0.1559)
OKLCHoklch(32.16% 0.158 279.5)
XYZxyz(5.2418, 2.8342, 20.6887)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B80 #71801B
analogous
#1B3E80 #2A1B80 #5C1B80
triadic
#2A1B80 #802A1B #1B802A
tetradic
#2A1B80 #801B3E #71801B #1B805C
square
#2A1B80 #801B3E #71801B #1B805C
split-complementary
#2A1B80 #805C1B #3E801B
monochromatic
#09061B #19104D #2A1B80 #3B26B3 #553FD6

Accessibility & contrast

On white

13.40
#2A1B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2A1B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B80
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B80#FFFFFF#000000##FFFFFF
##2A1B801.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1b80;
/* rgb */ color: rgb(42, 27, 128);
/* oklch */ color: oklch(32.2% 0.158 279.5);
Tailwind
colors: {
  custom: {
    50: '#715aa6',
    500: '#2a1b80',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b80;
$custom-light: #715aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b80",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 248.911,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3216,
    "c": 0.15806,
    "h": 279.5
  },
  "luminance": 0.02835
}

Semantic roles & 50–950 ramp

primary
#2A1B80
secondary
#A3B443
accent
#E840CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2A1B80

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

Preview Lab → · Contrast checker → · Palette generator →

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