#2A1E76#2A1E76

#2A1E76 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.142 H 280.7°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#2A1E76
RGBrgb(42, 30, 118)
HSLhsl(248, 59%, 29%)
HSVhsv(248, 75%, 46%)
CMYKcmyk(64.4%, 74.6%, 0%, 53.7%)
CIE-LABlab(18.92, 32.84, -48.36)
CIE-LCHlch(18.92, 58.45, 304.18°)
OKLaboklab(31.53% 0.0263 -0.1394)
OKLCHoklch(31.53% 0.142 280.7)
XYZxyz(4.6881, 2.7284, 17.4156)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E76 #6A761E
analogous
#1E3E76 #2A1E76 #561E76
triadic
#2A1E76 #762A1E #1E762A
tetradic
#2A1E76 #761E3E #6A761E #1E7656
square
#2A1E76 #761E3E #6A761E #1E7656
split-complementary
#2A1E76 #76561E #3E761E
monochromatic
#090618 #191245 #2A1E76 #3B2AA7 #5340CE

Accessibility & contrast

On white

13.59
#2A1E76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2A1E76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1E76
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E76#FFFFFF#000000##FFFFFF
##2A1E761.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002B74
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a1e76;
/* rgb */ color: rgb(42, 30, 118);
/* oklch */ color: oklch(31.5% 0.142 280.7);
Tailwind
colors: {
  custom: {
    50: '#6e5b9e',
    500: '#2a1e76',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e76;
$custom-light: #6e5b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e76",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 118
  },
  "hsl": {
    "h": 248.182,
    "s": 59.459,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31527,
    "c": 0.1419,
    "h": 280.7
  },
  "luminance": 0.02729
}

Semantic roles & 50–950 ramp

primary
#2A1E76
secondary
#9CAA46
accent
#E345CD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2A1E76

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

Preview Lab → · Contrast checker → · Palette generator →

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