#2A2AB4#2A2AB4

#2A2AB4 is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 39.9% C 0.208 H 271.9°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#2A2AB4
RGBrgb(42, 42, 180)
HSLhsl(240, 62%, 44%)
HSVhsv(240, 77%, 71%)
CMYKcmyk(76.7%, 76.7%, 0%, 29.4%)
CIE-LABlab(27.96, 46.71, -71.73)
CIE-LCHlch(27.96, 85.59, 303.07°)
OKLaboklab(39.9% 0.0068 -0.2076)
OKLCHoklch(39.9% 0.208 271.9)
XYZxyz(10.0183, 5.4424, 43.6937)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2AB4 #B4B42A
analogous
#2A6FB4 #2A2AB4 #6F2AB4
triadic
#2A2AB4 #B42A2A #2AB42A
tetradic
#2A2AB4 #B42A6F #B4B42A #2AB46F
square
#2A2AB4 #B42A6F #B4B42A #2AB46F
split-complementary
#2A2AB4 #B46F2A #6FB42A
monochromatic
#131351 #1E1E82 #2A2AB4 #4747D4 #7979E0

Accessibility & contrast

On white

10.05
#2A2AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2A2AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2AB4
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2AB4#FFFFFF#000000##FFFFFF
##2A2AB41.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B8
Deuteranopia (green-blind)
#003BB2
Tritanopia (blue-blind)
#00536E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a2ab4;
/* rgb */ color: rgb(42, 42, 180);
/* oklch */ color: oklch(39.9% 0.208 271.9);
Tailwind
colors: {
  custom: {
    50: '#7b66cc',
    500: '#2a2ab4',
    950: '#000000',
  },
}
SCSS
$custom: #2a2ab4;
$custom-light: #7b66cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2ab4",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 180
  },
  "hsl": {
    "h": 240,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.39897,
    "c": 0.20775,
    "h": 271.9
  },
  "luminance": 0.05443
}

Semantic roles & 50–950 ramp

primary
#2A2AB4
secondary
#C8C872
accent
#E543E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2A2AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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