#2A1E77#2A1E77

#2A1E77 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.143 H 280.5°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#2A1E77
RGBrgb(42, 30, 119)
HSLhsl(248, 60%, 29%)
HSVhsv(248, 75%, 47%)
CMYKcmyk(64.7%, 74.8%, 0%, 53.3%)
CIE-LABlab(19.02, 33.18, -48.83)
CIE-LCHlch(19.02, 59.04, 304.20°)
OKLaboklab(31.63% 0.0261 -0.1408)
OKLCHoklch(31.63% 0.143 280.5)
XYZxyz(4.7478, 2.7523, 17.7302)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E77 #6B771E
analogous
#1E3F77 #2A1E77 #571E77
triadic
#2A1E77 #772A1E #1E772A
tetradic
#2A1E77 #771E3F #6B771E #1E7757
square
#2A1E77 #771E3F #6B771E #1E7757
split-complementary
#2A1E77 #77571E #3F771E
monochromatic
#090618 #191246 #2A1E77 #3B2AA8 #5440CF

Accessibility & contrast

On white

13.54
#2A1E77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1E77
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E77#FFFFFF#000000##FFFFFF
##2A1E771.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317A
Deuteranopia (green-blind)
#002B75
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a1e77;
/* rgb */ color: rgb(42, 30, 119);
/* oklch */ color: oklch(31.6% 0.143 280.5);
Tailwind
colors: {
  custom: {
    50: '#6e5b9f',
    500: '#2a1e77',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e77;
$custom-light: #6e5b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e77",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 119
  },
  "hsl": {
    "h": 248.09,
    "s": 59.732,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3163,
    "c": 0.14322,
    "h": 280.5
  },
  "luminance": 0.02753
}

Semantic roles & 50–950 ramp

primary
#2A1E77
secondary
#9DAB46
accent
#E345CE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2A1E77

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

Preview Lab → · Contrast checker → · Palette generator →

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