#2A1A8B#2A1A8B

#2A1A8B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.173 H 277.8°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#2A1A8B
RGBrgb(42, 26, 139)
HSLhsl(248, 68%, 32%)
HSVhsv(248, 81%, 55%)
CMYKcmyk(69.8%, 81.3%, 0%, 45.5%)
CIE-LABlab(20.42, 41.92, -59.19)
CIE-LCHlch(20.42, 72.53, 305.31°)
OKLaboklab(33.26% 0.0234 -0.171)
OKLCHoklch(33.26% 0.173 277.8)
XYZxyz(5.9829, 3.0946, 24.7031)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A8B #7B8B1A
analogous
#1A428B #2A1A8B #631A8B
triadic
#2A1A8B #8B2A1A #1A8B2A
tetradic
#2A1A8B #8B1A42 #7B8B1A #1A8B63
square
#2A1A8B #8B1A42 #7B8B1A #1A8B63
split-complementary
#2A1A8B #8B631A #428B1A
monochromatic
#0B0724 #1A1057 #2A1A8B #3A24BF #5943DC

Accessibility & contrast

On white

12.97
#2A1A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2A1A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A8B
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A8B#FFFFFF#000000##FFFFFF
##2A1A8B1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002C89
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a1a8b;
/* rgb */ color: rgb(42, 26, 139);
/* oklch */ color: oklch(33.3% 0.173 277.8);
Tailwind
colors: {
  custom: {
    50: '#735aae',
    500: '#2a1a8b',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a8b;
$custom-light: #735aae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a8b",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 248.496,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33259,
    "c": 0.17261,
    "h": 277.8
  },
  "luminance": 0.03095
}

Semantic roles & 50–950 ramp

primary
#2A1A8B
secondary
#ACBD44
accent
#EB3CD3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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