#2A1B7D#2A1B7D

#2A1B7D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.154 H 280.0°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#2A1B7D
RGBrgb(42, 27, 125)
HSLhsl(249, 64%, 30%)
HSVhsv(249, 78%, 49%)
CMYKcmyk(66.4%, 78.4%, 0%, 51%)
CIE-LABlab(19.04, 36.90, -52.63)
CIE-LCHlch(19.04, 64.28, 305.03°)
OKLaboklab(31.83% 0.0268 -0.1519)
OKLCHoklch(31.83% 0.154 280)
XYZxyz(5.0473, 2.7564, 19.6641)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B7D #6E7D1B
analogous
#1B3D7D #2A1B7D #5B1B7D
triadic
#2A1B7D #7D2A1B #1B7D2A
tetradic
#2A1B7D #7D1B3D #6E7D1B #1B7D5B
square
#2A1B7D #7D1B3D #6E7D1B #1B7D5B
split-complementary
#2A1B7D #7D5B1B #3D7D1B
monochromatic
#080519 #19104B #2A1B7D #3B26AF #553DD5

Accessibility & contrast

On white

13.54
#2A1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2A1B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B7D
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B7D#FFFFFF#000000##FFFFFF
##2A1B7D1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a1b7d;
/* rgb */ color: rgb(42, 27, 125);
/* oklch */ color: oklch(31.8% 0.154 280.0);
Tailwind
colors: {
  custom: {
    50: '#705aa4',
    500: '#2a1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b7d;
$custom-light: #705aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b7d",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 249.184,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31832,
    "c": 0.15427,
    "h": 280
  },
  "luminance": 0.02757
}

Semantic roles & 50–950 ramp

primary
#2A1B7D
secondary
#A0B143
accent
#E740CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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