#2A1E7D#2A1E7D

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

Color values

HEX#2A1E7D
RGBrgb(42, 30, 125)
HSLhsl(248, 61%, 30%)
HSVhsv(248, 76%, 49%)
CMYKcmyk(66.4%, 76%, 0%, 51%)
CIE-LABlab(19.64, 35.20, -51.64)
CIE-LCHlch(19.64, 62.50, 304.28°)
OKLaboklab(32.26% 0.0247 -0.149)
OKLCHoklch(32.26% 0.151 279.4)
XYZxyz(5.1196, 2.9010, 19.6882)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E7D #717D1E
analogous
#1E417D #2A1E7D #591E7D
triadic
#2A1E7D #7D2A1E #1E7D2A
tetradic
#2A1E7D #7D1E41 #717D1E #1E7D59
square
#2A1E7D #7D1E41 #717D1E #1E7D59
split-complementary
#2A1E7D #7D591E #417D1E
monochromatic
#09061A #19124C #2A1E7D #3B2AAE #5543D2

Accessibility & contrast

On white

13.29
#2A1E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1E7D
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E7D#FFFFFF#000000##FFFFFF
##2A1E7D1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a1e7d;
/* rgb */ color: rgb(42, 30, 125);
/* oklch */ color: oklch(32.3% 0.151 279.4);
Tailwind
colors: {
  custom: {
    50: '#705ca4',
    500: '#2a1e7d',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e7d;
$custom-light: #705ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e7d",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 247.579,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32258,
    "c": 0.15109,
    "h": 279.4
  },
  "luminance": 0.02901
}

Semantic roles & 50–950 ramp

primary
#2A1E7D
secondary
#A3B046
accent
#E443D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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