#2A1B88#2A1B88

#2A1B88 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.168 H 278.1°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#2A1B88
RGBrgb(42, 27, 136)
HSLhsl(248, 67%, 32%)
HSVhsv(248, 80%, 53%)
CMYKcmyk(69.1%, 80.1%, 0%, 46.7%)
CIE-LABlab(20.26, 40.45, -57.58)
CIE-LCHlch(20.26, 70.37, 305.09°)
OKLaboklab(33.05% 0.0238 -0.1663)
OKLCHoklch(33.05% 0.168 278.1)
XYZxyz(5.7893, 3.0532, 23.5720)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B88 #79881B
analogous
#1B4388 #2A1B88 #611B88
triadic
#2A1B88 #882A1B #1B882A
tetradic
#2A1B88 #881B43 #79881B #1B8861
square
#2A1B88 #881B43 #79881B #1B8861
split-complementary
#2A1B88 #88611B #43881B
monochromatic
#0A0722 #1A1155 #2A1B88 #3A25BB #5844DA

Accessibility & contrast

On white

13.04
#2A1B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2A1B88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B88
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B88#FFFFFF#000000##FFFFFF
##2A1B881.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002C86
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a1b88;
/* rgb */ color: rgb(42, 27, 136);
/* oklch */ color: oklch(33.0% 0.168 278.1);
Tailwind
colors: {
  custom: {
    50: '#725aac',
    500: '#2a1b88',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b88;
$custom-light: #725aac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b88",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 136
  },
  "hsl": {
    "h": 248.257,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33045,
    "c": 0.16803,
    "h": 278.1
  },
  "luminance": 0.03054
}

Semantic roles & 50–950 ramp

primary
#2A1B88
secondary
#ABBB44
accent
#EA3ED2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1B88

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

Preview Lab → · Contrast checker → · Palette generator →

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