#2A1D9A#2A1D9A

#2A1D9A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.188 H 275.5°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#2A1D9A
RGBrgb(42, 29, 154)
HSLhsl(246, 68%, 36%)
HSVhsv(246, 81%, 60%)
CMYKcmyk(72.7%, 81.2%, 0%, 39.6%)
CIE-LABlab(22.67, 45.14, -64.77)
CIE-LCHlch(22.67, 78.95, 304.88°)
OKLaboklab(35.33% 0.0179 -0.1872)
OKLCHoklch(35.33% 0.188 275.5)
XYZxyz(7.2250, 3.7034, 30.8996)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D9A #8D9A1D
analogous
#1D4E9A #2A1D9A #681D9A
triadic
#2A1D9A #9A2A1D #1D9A2A
tetradic
#2A1D9A #9A1D4E #8D9A1D #1D9A68
square
#2A1D9A #9A1D4E #8D9A1D #1D9A68
split-complementary
#2A1D9A #9A681D #4E9A1D
monochromatic
#0E0A33 #1C1366 #2A1D9A #3827CE #6153DF

Accessibility & contrast

On white

12.06
#2A1D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2A1D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1D9A
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D9A#FFFFFF#000000##FFFFFF
##2A1D9A1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9D
Deuteranopia (green-blind)
#003098
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a1d9a;
/* rgb */ color: rgb(42, 29, 154);
/* oklch */ color: oklch(35.3% 0.188 275.5);
Tailwind
colors: {
  custom: {
    50: '#765db9',
    500: '#2a1d9a',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d9a;
$custom-light: #765db9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d9a",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 246.24,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35329,
    "c": 0.1881,
    "h": 275.5
  },
  "luminance": 0.03704
}

Semantic roles & 50–950 ramp

primary
#2A1D9A
secondary
#B6C251
accent
#EB3DD9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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