#2A1D89#2A1D89

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

Color values

HEX#2A1D89
RGBrgb(42, 29, 137)
HSLhsl(247, 65%, 33%)
HSVhsv(247, 79%, 54%)
CMYKcmyk(69.3%, 78.8%, 0%, 46.3%)
CIE-LABlab(20.74, 39.71, -57.41)
CIE-LCHlch(20.74, 69.81, 304.67°)
OKLaboklab(33.42% 0.0224 -0.1659)
OKLCHoklch(33.42% 0.167 277.7)
XYZxyz(5.9081, 3.1766, 23.9639)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D89 #7C891D
analogous
#1D4689 #2A1D89 #601D89
triadic
#2A1D89 #892A1D #1D892A
tetradic
#2A1D89 #891D46 #7C891D #1D8960
square
#2A1D89 #891D46 #7C891D #1D8960
split-complementary
#2A1D89 #89601D #46891D
monochromatic
#0B0824 #1B1256 #2A1D89 #3928BC #5948D8

Accessibility & contrast

On white

12.84
#2A1D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2A1D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1D89
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D89#FFFFFF#000000##FFFFFF
##2A1D891.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a1d89;
/* rgb */ color: rgb(42, 29, 137);
/* oklch */ color: oklch(33.4% 0.167 277.7);
Tailwind
colors: {
  custom: {
    50: '#725cad',
    500: '#2a1d89',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d89;
$custom-light: #725cad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d89",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 137
  },
  "hsl": {
    "h": 247.222,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33416,
    "c": 0.16738,
    "h": 277.7
  },
  "luminance": 0.03177
}

Semantic roles & 50–950 ramp

primary
#2A1D89
secondary
#ADBA47
accent
#E840D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1D89

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

Preview Lab → · Contrast checker → · Palette generator →

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