#2A1C77#2A1C77

#2A1C77 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.145 H 280.9°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#2A1C77
RGBrgb(42, 28, 119)
HSLhsl(249, 62%, 29%)
HSVhsv(249, 76%, 47%)
CMYKcmyk(64.7%, 76.5%, 0%, 53.3%)
CIE-LABlab(18.60, 34.36, -49.52)
CIE-LCHlch(18.60, 60.27, 304.75°)
OKLaboklab(31.33% 0.0276 -0.1428)
OKLCHoklch(31.33% 0.145 280.9)
XYZxyz(4.6988, 2.6543, 17.7139)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C77 #69771C
analogous
#1C3C77 #2A1C77 #581C77
triadic
#2A1C77 #772A1C #1C772A
tetradic
#2A1C77 #771C3C #69771C #1C7758
square
#2A1C77 #771C3C #69771C #1C7758
split-complementary
#2A1C77 #77581C #3C771C
monochromatic
#090619 #191045 #2A1C77 #3B28A9 #533CD1

Accessibility & contrast

On white

13.72
#2A1C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2A1C77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1C77
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C77#FFFFFF#000000##FFFFFF
##2A1C771.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002A75
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a1c77;
/* rgb */ color: rgb(42, 28, 119);
/* oklch */ color: oklch(31.3% 0.145 280.9);
Tailwind
colors: {
  custom: {
    50: '#6e5a9f',
    500: '#2a1c77',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c77;
$custom-light: #6e5a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c77",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 119
  },
  "hsl": {
    "h": 249.231,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31332,
    "c": 0.14549,
    "h": 280.9
  },
  "luminance": 0.02655
}

Semantic roles & 50–950 ramp

primary
#2A1C77
secondary
#9BAB44
accent
#E543CC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2A1C77

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

Preview Lab → · Contrast checker → · Palette generator →

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