#2A2884#2A2884

#2A2884 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.149 H 276.2°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#2A2884
RGBrgb(42, 40, 132)
HSLhsl(241, 53%, 34%)
HSVhsv(241, 70%, 52%)
CMYKcmyk(68.2%, 69.7%, 0%, 48.2%)
CIE-LABlab(22.57, 31.48, -51.26)
CIE-LCHlch(22.57, 60.16, 301.55°)
OKLaboklab(34.56% 0.0161 -0.148)
OKLCHoklch(34.56% 0.149 276.2)
XYZxyz(5.8771, 3.6753, 22.2250)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2884 #828428
analogous
#285484 #2A2884 #582884
triadic
#2A2884 #842A28 #28842A
tetradic
#2A2884 #842854 #828428 #288458
square
#2A2884 #842854 #828428 #288458
split-complementary
#2A2884 #845828 #548428
monochromatic
#0C0C26 #1B1A55 #2A2884 #3936B3 #5C5ACD

Accessibility & contrast

On white

12.10
#2A2884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2A2884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2884
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2884#FFFFFF#000000##FFFFFF
##2A28841.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003282
Tritanopia (blue-blind)
#004052
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2884;
/* rgb */ color: rgb(42, 40, 132);
/* oklch */ color: oklch(34.6% 0.149 276.2);
Tailwind
colors: {
  custom: {
    50: '#7062a9',
    500: '#2a2884',
    950: '#000000',
  },
}
SCSS
$custom: #2a2884;
$custom-light: #7062a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2884",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 132
  },
  "hsl": {
    "h": 241.304,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34564,
    "c": 0.14884,
    "h": 276.2
  },
  "luminance": 0.03676
}

Semantic roles & 50–950 ramp

primary
#2A2884
secondary
#B0B256
accent
#DD4BDA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #2A2884

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

Preview Lab → · Contrast checker → · Palette generator →

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