#2A1C80#2A1C80

#2A1C80 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.157 H 279.3°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#2A1C80
RGBrgb(42, 28, 128)
HSLhsl(248, 64%, 31%)
HSVhsv(248, 78%, 50%)
CMYKcmyk(67.2%, 78.1%, 0%, 49.8%)
CIE-LABlab(19.56, 37.33, -53.68)
CIE-LCHlch(19.56, 65.38, 304.81°)
OKLaboklab(32.3% 0.0253 -0.155)
OKLCHoklch(32.3% 0.157 279.3)
XYZxyz(5.2651, 2.8808, 20.6965)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C80 #72801C
analogous
#1C4080 #2A1C80 #5C1C80
triadic
#2A1C80 #802A1C #1C802A
tetradic
#2A1C80 #801C40 #72801C #1C805C
square
#2A1C80 #801C40 #72801C #1C805C
split-complementary
#2A1C80 #805C1C #40801C
monochromatic
#09061C #1A114E #2A1C80 #3A27B2 #5641D5

Accessibility & contrast

On white

13.32
#2A1C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2A1C80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1C80
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C80#FFFFFF#000000##FFFFFF
##2A1C801.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1c80;
/* rgb */ color: rgb(42, 28, 128);
/* oklch */ color: oklch(32.3% 0.157 279.3);
Tailwind
colors: {
  custom: {
    50: '#705ba6',
    500: '#2a1c80',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c80;
$custom-light: #705ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c80",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 128
  },
  "hsl": {
    "h": 248.4,
    "s": 64.103,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32295,
    "c": 0.15705,
    "h": 279.3
  },
  "luminance": 0.02881
}

Semantic roles & 50–950 ramp

primary
#2A1C80
secondary
#A4B344
accent
#E741D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2A1C80

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

Preview Lab → · Contrast checker → · Palette generator →

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