#2A1A88#2A1A88

#2A1A88 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.169 H 278.3°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#2A1A88
RGBrgb(42, 26, 136)
HSLhsl(249, 68%, 32%)
HSVhsv(249, 81%, 53%)
CMYKcmyk(69.1%, 80.9%, 0%, 46.7%)
CIE-LABlab(20.08, 40.97, -57.88)
CIE-LCHlch(20.08, 70.91, 305.29°)
OKLaboklab(32.92% 0.0243 -0.1672)
OKLCHoklch(32.92% 0.169 278.3)
XYZxyz(5.7667, 3.0081, 23.5645)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A88 #78881A
analogous
#1A4188 #2A1A88 #611A88
triadic
#2A1A88 #882A1A #1A882A
tetradic
#2A1A88 #881A41 #78881A #1A8861
square
#2A1A88 #881A41 #78881A #1A8861
split-complementary
#2A1A88 #88611A #41881A
monochromatic
#0A0621 #1A1055 #2A1A88 #3A24BB #5842DB

Accessibility & contrast

On white

13.11
#2A1A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2A1A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A88
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A88#FFFFFF#000000##FFFFFF
##2A1A881.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002C86
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a1a88;
/* rgb */ color: rgb(42, 26, 136);
/* oklch */ color: oklch(32.9% 0.169 278.3);
Tailwind
colors: {
  custom: {
    50: '#725aac',
    500: '#2a1a88',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a88;
$custom-light: #725aac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a88",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 136
  },
  "hsl": {
    "h": 248.727,
    "s": 67.901,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3292,
    "c": 0.16895,
    "h": 278.3
  },
  "luminance": 0.03009
}

Semantic roles & 50–950 ramp

primary
#2A1A88
secondary
#AABB43
accent
#EB3DD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1A88

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

Preview Lab → · Contrast checker → · Palette generator →

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