#2A1C74#2A1C74

#2A1C74 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.142 H 281.5°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#2A1C74
RGBrgb(42, 28, 116)
HSLhsl(250, 61%, 28%)
HSVhsv(250, 76%, 45%)
CMYKcmyk(63.8%, 75.9%, 0%, 54.5%)
CIE-LABlab(18.29, 33.36, -48.10)
CIE-LCHlch(18.29, 58.54, 304.74°)
OKLaboklab(31.02% 0.0283 -0.1387)
OKLCHoklch(31.02% 0.142 281.5)
XYZxyz(4.5215, 2.5834, 16.7800)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C74 #66741C
analogous
#1C3A74 #2A1C74 #561C74
triadic
#2A1C74 #742A1C #1C742A
tetradic
#2A1C74 #741C3A #66741C #1C7456
square
#2A1C74 #741C3A #66741C #1C7456
split-complementary
#2A1C74 #74561C #3A741C
monochromatic
#090619 #181043 #2A1C74 #3C28A5 #523BD0

Accessibility & contrast

On white

13.84
#2A1C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2A1C74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1C74
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C74#FFFFFF#000000##FFFFFF
##2A1C741.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a1c74;
/* rgb */ color: rgb(42, 28, 116);
/* oklch */ color: oklch(31.0% 0.142 281.5);
Tailwind
colors: {
  custom: {
    50: '#6e5a9d',
    500: '#2a1c74',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c74;
$custom-light: #6e5a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c74",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 116
  },
  "hsl": {
    "h": 249.545,
    "s": 61.111,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31017,
    "c": 0.14156,
    "h": 281.5
  },
  "luminance": 0.02584
}

Semantic roles & 50–950 ramp

primary
#2A1C74
secondary
#98A843
accent
#E444CB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2A1C74

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

Preview Lab → · Contrast checker → · Palette generator →

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