#2A1DB3#2A1DB3

#2A1DB3 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.2% C 0.217 H 272.9°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#2A1DB3
RGBrgb(42, 29, 179)
HSLhsl(245, 72%, 41%)
HSVhsv(245, 84%, 70%)
CMYKcmyk(76.5%, 83.8%, 0%, 29.8%)
CIE-LABlab(25.64, 52.80, -74.98)
CIE-LCHlch(25.64, 91.70, 305.15°)
OKLaboklab(38.24% 0.0112 -0.2169)
OKLCHoklch(38.24% 0.217 272.9)
XYZxyz(9.5282, 4.6246, 43.0296)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1DB3 #A6B31D
analogous
#1D5BB3 #2A1DB3 #751DB3
triadic
#2A1DB3 #B32A1D #1DB32A
tetradic
#2A1DB3 #B31D5B #A6B31D #1DB375
square
#2A1DB3 #B31D5B #A6B31D #1DB375
split-complementary
#2A1DB3 #B3751D #5BB31D
monochromatic
#110C4A #1E147E #2A1DB3 #3F30DD #7064E6

Accessibility & contrast

On white

10.91
#2A1DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2A1DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1DB3
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1DB3#FFFFFF#000000##FFFFFF
##2A1DB31.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0035B1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a1db3;
/* rgb */ color: rgb(42, 29, 179);
/* oklch */ color: oklch(38.2% 0.217 272.9);
Tailwind
colors: {
  custom: {
    50: '#7c5fcb',
    500: '#2a1db3',
    950: '#000000',
  },
}
SCSS
$custom: #2a1db3;
$custom-light: #7c5fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1db3",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 179
  },
  "hsl": {
    "h": 245.2,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38244,
    "c": 0.21716,
    "h": 272.9
  },
  "luminance": 0.04626
}

Semantic roles & 50–950 ramp

primary
#2A1DB3
secondary
#C2CB61
accent
#EF39DF
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2A1DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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