#2A1B82#2A1B82

#2A1B82 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.161 H 279.1°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#2A1B82
RGBrgb(42, 27, 130)
HSLhsl(249, 66%, 31%)
HSVhsv(249, 79%, 51%)
CMYKcmyk(67.7%, 79.2%, 0%, 49%)
CIE-LABlab(19.59, 38.52, -54.91)
CIE-LCHlch(19.59, 67.07, 305.05°)
OKLaboklab(32.38% 0.0254 -0.1585)
OKLCHoklch(32.38% 0.161 279.1)
XYZxyz(5.3748, 2.8874, 21.3888)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B82 #73821B
analogous
#1B3F82 #2A1B82 #5D1B82
triadic
#2A1B82 #822A1B #1B822A
tetradic
#2A1B82 #821B3F #73821B #1B825D
square
#2A1B82 #821B3F #73821B #1B825D
split-complementary
#2A1B82 #825D1B #3F821B
monochromatic
#09061D #1A104F #2A1B82 #3A26B5 #5640D7

Accessibility & contrast

On white

13.31
#2A1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2A1B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B82
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B82#FFFFFF#000000##FFFFFF
##2A1B821.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002B80
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1b82;
/* rgb */ color: rgb(42, 27, 130);
/* oklch */ color: oklch(32.4% 0.161 279.1);
Tailwind
colors: {
  custom: {
    50: '#715aa7',
    500: '#2a1b82',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b82;
$custom-light: #715aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b82",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 248.738,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32379,
    "c": 0.16058,
    "h": 279.1
  },
  "luminance": 0.02888
}

Semantic roles & 50–950 ramp

primary
#2A1B82
secondary
#A5B643
accent
#E93FD0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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