#2A1B8B#2A1B8B

#2A1B8B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.4% C 0.172 H 277.7°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#2A1B8B
RGBrgb(42, 27, 139)
HSLhsl(248, 67%, 33%)
HSVhsv(248, 81%, 55%)
CMYKcmyk(69.8%, 80.6%, 0%, 45.5%)
CIE-LABlab(20.59, 41.41, -58.90)
CIE-LCHlch(20.59, 72.00, 305.11°)
OKLaboklab(33.38% 0.0229 -0.1702)
OKLCHoklch(33.38% 0.172 277.7)
XYZxyz(6.0055, 3.1397, 24.7106)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B8B #7C8B1B
analogous
#1B448B #2A1B8B #621B8B
triadic
#2A1B8B #8B2A1B #1B8B2A
tetradic
#2A1B8B #8B1B44 #7C8B1B #1B8B62
square
#2A1B8B #8B1B44 #7C8B1B #1B8B62
split-complementary
#2A1B8B #8B621B #448B1B
monochromatic
#0B0725 #1B1158 #2A1B8B #3925BE #5945DB

Accessibility & contrast

On white

12.90
#2A1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2A1B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B8B
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B8B#FFFFFF#000000##FFFFFF
##2A1B8B1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a1b8b;
/* rgb */ color: rgb(42, 27, 139);
/* oklch */ color: oklch(33.4% 0.172 277.7);
Tailwind
colors: {
  custom: {
    50: '#735bae',
    500: '#2a1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b8b;
$custom-light: #735bae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b8b",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 248.036,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33382,
    "c": 0.17171,
    "h": 277.7
  },
  "luminance": 0.0314
}

Semantic roles & 50–950 ramp

primary
#2A1B8B
secondary
#ADBC45
accent
#EA3DD3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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