#2A1D7D#2A1D7D

#2A1D7D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.152 H 279.6°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#2A1D7D
RGBrgb(42, 29, 125)
HSLhsl(248, 62%, 30%)
HSVhsv(248, 77%, 49%)
CMYKcmyk(66.4%, 76.8%, 0%, 51%)
CIE-LABlab(19.44, 35.77, -51.98)
CIE-LCHlch(19.44, 63.10, 304.54°)
OKLaboklab(32.11% 0.0254 -0.15)
OKLCHoklch(32.11% 0.152 279.6)
XYZxyz(5.0947, 2.8512, 19.6799)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D7D #707D1D
analogous
#1D407D #2A1D7D #5A1D7D
triadic
#2A1D7D #7D2A1D #1D7D2A
tetradic
#2A1D7D #7D1D40 #707D1D #1D7D5A
square
#2A1D7D #7D1D40 #707D1D #1D7D5A
split-complementary
#2A1D7D #7D5A1D #407D1D
monochromatic
#09061A #19114B #2A1D7D #3B29AF #5541D3

Accessibility & contrast

On white

13.37
#2A1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2A1D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1D7D
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D7D#FFFFFF#000000##FFFFFF
##2A1D7D1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1d7d;
/* rgb */ color: rgb(42, 29, 125);
/* oklch */ color: oklch(32.1% 0.152 279.6);
Tailwind
colors: {
  custom: {
    50: '#705ba4',
    500: '#2a1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d7d;
$custom-light: #705ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d7d",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 248.125,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32113,
    "c": 0.15217,
    "h": 279.6
  },
  "luminance": 0.02852
}

Semantic roles & 50–950 ramp

primary
#2A1D7D
secondary
#A2B145
accent
#E542CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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