#2A1E8B#2A1E8B

#2A1E8B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.169 H 277.3°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#2A1E8B
RGBrgb(42, 30, 139)
HSLhsl(247, 64%, 33%)
HSVhsv(247, 78%, 55%)
CMYKcmyk(69.8%, 78.4%, 0%, 45.5%)
CIE-LABlab(21.15, 39.82, -57.98)
CIE-LCHlch(21.15, 70.34, 304.48°)
OKLaboklab(33.77% 0.0214 -0.1675)
OKLCHoklch(33.77% 0.169 277.3)
XYZxyz(6.0778, 3.2843, 24.7347)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E8B #7F8B1E
analogous
#1E488B #2A1E8B #611E8B
triadic
#2A1E8B #8B2A1E #1E8B2A
tetradic
#2A1E8B #8B1E48 #7F8B1E #1E8B61
square
#2A1E8B #8B1E48 #7F8B1E #1E8B61
split-complementary
#2A1E8B #8B611E #488B1E
monochromatic
#0C0826 #1B1359 #2A1E8B #3929BD #5B4BD8

Accessibility & contrast

On white

12.67
#2A1E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2A1E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1E8B
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E8B#FFFFFF#000000##FFFFFF
##2A1E8B1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a1e8b;
/* rgb */ color: rgb(42, 30, 139);
/* oklch */ color: oklch(33.8% 0.169 277.3);
Tailwind
colors: {
  custom: {
    50: '#735cae',
    500: '#2a1e8b',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e8b;
$custom-light: #735cae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e8b",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 246.606,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33769,
    "c": 0.1689,
    "h": 277.3
  },
  "luminance": 0.03285
}

Semantic roles & 50–950 ramp

primary
#2A1E8B
secondary
#AEBB4A
accent
#E740D5
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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