#2A1E71#2A1E71

#2A1E71 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.135 H 281.6°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#2A1E71
RGBrgb(42, 30, 113)
HSLhsl(249, 58%, 28%)
HSVhsv(249, 73%, 44%)
CMYKcmyk(62.8%, 73.5%, 0%, 55.7%)
CIE-LABlab(18.42, 31.15, -45.96)
CIE-LCHlch(18.42, 55.52, 304.13°)
OKLaboklab(31.02% 0.0273 -0.1324)
OKLCHoklch(31.02% 0.135 281.6)
XYZxyz(4.3988, 2.6127, 15.8921)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E71 #65711E
analogous
#1E3B71 #2A1E71 #531E71
triadic
#2A1E71 #712A1E #1E712A
tetradic
#2A1E71 #711E3B #65711E #1E7153
square
#2A1E71 #711E3B #65711E #1E7153
split-complementary
#2A1E71 #71531E #3B711E
monochromatic
#090618 #181141 #2A1E71 #3C2BA1 #523ECC

Accessibility & contrast

On white

13.79
#2A1E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2A1E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1E71
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E71#FFFFFF#000000##FFFFFF
##2A1E711.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#003445
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a1e71;
/* rgb */ color: rgb(42, 30, 113);
/* oklch */ color: oklch(31.0% 0.135 281.6);
Tailwind
colors: {
  custom: {
    50: '#6d5b9b',
    500: '#2a1e71',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e71;
$custom-light: #6d5b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e71",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 113
  },
  "hsl": {
    "h": 248.675,
    "s": 58.042,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31017,
    "c": 0.1352,
    "h": 281.6
  },
  "luminance": 0.02613
}

Semantic roles & 50–950 ramp

primary
#2A1E71
secondary
#97A546
accent
#E147CB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2A1E71

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

Preview Lab → · Contrast checker → · Palette generator →

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