#2A1D8E#2A1D8E

#2A1D8E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.174 H 277.0°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#2A1D8E
RGBrgb(42, 29, 142)
HSLhsl(247, 66%, 34%)
HSVhsv(247, 80%, 56%)
CMYKcmyk(70.4%, 79.6%, 0%, 44.3%)
CIE-LABlab(21.30, 41.33, -59.61)
CIE-LCHlch(21.30, 72.54, 304.73°)
OKLaboklab(33.97% 0.0211 -0.1723)
OKLCHoklch(33.97% 0.174 277)
XYZxyz(6.2751, 3.3234, 25.8967)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D8E #818E1D
analogous
#1D488E #2A1D8E #621D8E
triadic
#2A1D8E #8E2A1D #1D8E2A
tetradic
#2A1D8E #8E1D48 #818E1D #1D8E62
square
#2A1D8E #8E1D48 #818E1D #1D8E62
split-complementary
#2A1D8E #8E621D #488E1D
monochromatic
#0C0828 #1B135B #2A1D8E #3927C1 #5C4BDA

Accessibility & contrast

On white

12.61
#2A1D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2A1D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1D8E
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D8E#FFFFFF#000000##FFFFFF
##2A1D8E1.0012.611.6612.61
#FFFFFF12.611.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a1d8e;
/* rgb */ color: rgb(42, 29, 142);
/* oklch */ color: oklch(34.0% 0.174 277.0);
Tailwind
colors: {
  custom: {
    50: '#745cb0',
    500: '#2a1d8e',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d8e;
$custom-light: #745cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d8e",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 246.903,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33971,
    "c": 0.17357,
    "h": 277
  },
  "luminance": 0.03324
}

Semantic roles & 50–950 ramp

primary
#2A1D8E
secondary
#AFBD4A
accent
#E93FD5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A1D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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