#2A1D99#2A1D99

#2A1D99 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.187 H 275.6°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#2A1D99
RGBrgb(42, 29, 153)
HSLhsl(246, 68%, 36%)
HSVhsv(246, 81%, 60%)
CMYKcmyk(72.5%, 81%, 0%, 40%)
CIE-LABlab(22.55, 44.83, -64.34)
CIE-LCHlch(22.55, 78.42, 304.87°)
OKLaboklab(35.22% 0.0182 -0.186)
OKLCHoklch(35.22% 0.187 275.6)
XYZxyz(7.1421, 3.6702, 30.4628)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D99 #8C991D
analogous
#1D4E99 #2A1D99 #681D99
triadic
#2A1D99 #992A1D #1D992A
tetradic
#2A1D99 #991D4E #8C991D #1D9968
square
#2A1D99 #991D4E #8C991D #1D9968
split-complementary
#2A1D99 #99681D #4E991D
monochromatic
#0E0932 #1C1366 #2A1D99 #3827CC #6152DE

Accessibility & contrast

On white

12.11
#2A1D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2A1D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1D99
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D99#FFFFFF#000000##FFFFFF
##2A1D991.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9C
Deuteranopia (green-blind)
#003097
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a1d99;
/* rgb */ color: rgb(42, 29, 153);
/* oklch */ color: oklch(35.2% 0.187 275.6);
Tailwind
colors: {
  custom: {
    50: '#765db8',
    500: '#2a1d99',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d99;
$custom-light: #765db8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d99",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 153
  },
  "hsl": {
    "h": 246.29,
    "s": 68.132,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35215,
    "c": 0.1869,
    "h": 275.6
  },
  "luminance": 0.03671
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A1D99

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

Preview Lab → · Contrast checker → · Palette generator →

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