#2A1C79#2A1C79

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

Color values

HEX#2A1C79
RGBrgb(42, 28, 121)
HSLhsl(249, 62%, 29%)
HSVhsv(249, 77%, 47%)
CMYKcmyk(65.3%, 76.9%, 0%, 52.5%)
CIE-LABlab(18.81, 35.02, -50.46)
CIE-LCHlch(18.81, 61.42, 304.76°)
OKLaboklab(31.54% 0.0271 -0.1456)
OKLCHoklch(31.54% 0.148 280.5)
XYZxyz(4.8202, 2.7029, 18.3531)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C79 #6B791C
analogous
#1C3D79 #2A1C79 #591C79
triadic
#2A1C79 #792A1C #1C792A
tetradic
#2A1C79 #791C3D #6B791C #1C7959
square
#2A1C79 #791C3D #6B791C #1C7959
split-complementary
#2A1C79 #79591C #3D791C
monochromatic
#090619 #191047 #2A1C79 #3B28AB #543DD2

Accessibility & contrast

On white

13.63
#2A1C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2A1C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1C79
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C79#FFFFFF#000000##FFFFFF
##2A1C791.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a1c79;
/* rgb */ color: rgb(42, 28, 121);
/* oklch */ color: oklch(31.5% 0.148 280.5);
Tailwind
colors: {
  custom: {
    50: '#6f5aa1',
    500: '#2a1c79',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c79;
$custom-light: #6f5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c79",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 249.032,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31543,
    "c": 0.14808,
    "h": 280.5
  },
  "luminance": 0.02703
}

Semantic roles & 50–950 ramp

primary
#2A1C79
secondary
#9DAD44
accent
#E542CD
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1C79

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

Preview Lab → · Contrast checker → · Palette generator →

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