#2A1E7A#2A1E7A

#2A1E7A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.147 H 279.9°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#2A1E7A
RGBrgb(42, 30, 122)
HSLhsl(248, 61%, 30%)
HSVhsv(248, 75%, 48%)
CMYKcmyk(65.6%, 75.4%, 0%, 52.2%)
CIE-LABlab(19.33, 34.19, -50.24)
CIE-LCHlch(19.33, 60.77, 304.24°)
OKLaboklab(31.94% 0.0254 -0.145)
OKLCHoklch(31.94% 0.147 279.9)
XYZxyz(4.9309, 2.8255, 18.6941)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E7A #6E7A1E
analogous
#1E407A #2A1E7A #581E7A
triadic
#2A1E7A #7A2A1E #1E7A2A
tetradic
#2A1E7A #7A1E40 #6E7A1E #1E7A58
square
#2A1E7A #7A1E40 #6E7A1E #1E7A58
split-complementary
#2A1E7A #7A581E #407A1E
monochromatic
#080619 #191249 #2A1E7A #3B2AAB #5542D0

Accessibility & contrast

On white

13.42
#2A1E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2A1E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1E7A
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E7A#FFFFFF#000000##FFFFFF
##2A1E7A1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1e7a;
/* rgb */ color: rgb(42, 30, 122);
/* oklch */ color: oklch(31.9% 0.147 279.9);
Tailwind
colors: {
  custom: {
    50: '#6f5ba1',
    500: '#2a1e7a',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e7a;
$custom-light: #6f5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e7a",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 247.826,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31942,
    "c": 0.14718,
    "h": 279.9
  },
  "luminance": 0.02826
}

Semantic roles & 50–950 ramp

primary
#2A1E7A
secondary
#A0AE46
accent
#E444CF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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