#2A2A84#2A2A84

#2A2A84 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.146 H 275.7°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#2A2A84
RGBrgb(42, 42, 132)
HSLhsl(240, 52%, 34%)
HSVhsv(240, 68%, 52%)
CMYKcmyk(68.2%, 68.2%, 0%, 48.2%)
CIE-LABlab(23.05, 30.19, -50.48)
CIE-LCHlch(23.05, 58.82, 300.88°)
OKLaboklab(34.91% 0.0146 -0.1457)
OKLCHoklch(34.91% 0.146 275.7)
XYZxyz(5.9463, 3.8136, 22.2481)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A84 #84842A
analogous
#2A5784 #2A2A84 #572A84
triadic
#2A2A84 #842A2A #2A842A
tetradic
#2A2A84 #842A57 #84842A #2A8457
square
#2A2A84 #842A57 #84842A #2A8457
split-complementary
#2A2A84 #84572A #57842A
monochromatic
#0C0C27 #1B1B56 #2A2A84 #3939B2 #5D5DCB

Accessibility & contrast

On white

11.91
#2A2A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2A2A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A84
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A84#FFFFFF#000000##FFFFFF
##2A2A841.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B87
Deuteranopia (green-blind)
#003382
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2a84;
/* rgb */ color: rgb(42, 42, 132);
/* oklch */ color: oklch(34.9% 0.146 275.7);
Tailwind
colors: {
  custom: {
    50: '#7064a9',
    500: '#2a2a84',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a84;
$custom-light: #7064a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a84",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 132
  },
  "hsl": {
    "h": 240,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3491,
    "c": 0.14639,
    "h": 275.7
  },
  "luminance": 0.03814
}

Semantic roles & 50–950 ramp

primary
#2A2A84
secondary
#B1B159
accent
#DB4DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #2A2A84

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

Preview Lab → · Contrast checker → · Palette generator →

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