#2A1886#2A1886

#2A1886 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.168 H 278.9°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#2A1886
RGBrgb(42, 24, 134)
HSLhsl(250, 70%, 31%)
HSVhsv(250, 82%, 53%)
CMYKcmyk(68.7%, 82.1%, 0%, 47.5%)
CIE-LABlab(19.50, 41.35, -57.57)
CIE-LCHlch(19.50, 70.88, 305.68°)
OKLaboklab(32.45% 0.0259 -0.1663)
OKLCHoklch(32.45% 0.168 278.9)
XYZxyz(5.5832, 2.8663, 22.8087)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1886 #748618
analogous
#183D86 #2A1886 #611886
triadic
#2A1886 #862A18 #18862A
tetradic
#2A1886 #86183D #748618 #188661
square
#2A1886 #86183D #748618 #188661
split-complementary
#2A1886 #866118 #3D8618
monochromatic
#09051E #1A0F52 #2A1886 #3A21BA #563CDC

Accessibility & contrast

On white

13.35
#2A1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1886
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1886#FFFFFF#000000##FFFFFF
##2A18861.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002B84
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1886;
/* rgb */ color: rgb(42, 24, 134);
/* oklch */ color: oklch(32.5% 0.168 278.9);
Tailwind
colors: {
  custom: {
    50: '#7259aa',
    500: '#2a1886',
    950: '#000000',
  },
}
SCSS
$custom: #2a1886;
$custom-light: #7259aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1886",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 249.818,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32452,
    "c": 0.16828,
    "h": 278.9
  },
  "luminance": 0.02867
}

Semantic roles & 50–950 ramp

primary
#2A1886
secondary
#A6BA40
accent
#EC3BCF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1886

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

Preview Lab → · Contrast checker → · Palette generator →

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