#2A1A8A#2A1A8A

#2A1A8A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.171 H 278.0°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#2A1A8A
RGBrgb(42, 26, 138)
HSLhsl(249, 68%, 32%)
HSVhsv(249, 81%, 54%)
CMYKcmyk(69.6%, 81.2%, 0%, 45.9%)
CIE-LABlab(20.30, 41.60, -58.75)
CIE-LCHlch(20.30, 71.99, 305.30°)
OKLaboklab(33.15% 0.0237 -0.1697)
OKLCHoklch(33.15% 0.171 278)
XYZxyz(5.9102, 3.0655, 24.3201)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A8A #7A8A1A
analogous
#1A428A #2A1A8A #621A8A
triadic
#2A1A8A #8A2A1A #1A8A2A
tetradic
#2A1A8A #8A1A42 #7A8A1A #1A8A62
square
#2A1A8A #8A1A42 #7A8A1A #1A8A62
split-complementary
#2A1A8A #8A621A #428A1A
monochromatic
#0B0723 #1A1057 #2A1A8A #3A24BD #5943DC

Accessibility & contrast

On white

13.02
#2A1A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2A1A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A8A
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A8A#FFFFFF#000000##FFFFFF
##2A1A8A1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002C88
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a1a8a;
/* rgb */ color: rgb(42, 26, 138);
/* oklch */ color: oklch(33.1% 0.171 278.0);
Tailwind
colors: {
  custom: {
    50: '#735aad',
    500: '#2a1a8a',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a8a;
$custom-light: #735aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a8a",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 248.571,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33146,
    "c": 0.17139,
    "h": 278
  },
  "luminance": 0.03066
}

Semantic roles & 50–950 ramp

primary
#2A1A8A
secondary
#ABBD43
accent
#EB3DD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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