#2A2AB6#2A2AB6

#2A2AB6 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.1% C 0.210 H 271.7°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#2A2AB6
RGBrgb(42, 42, 182)
HSLhsl(240, 63%, 44%)
HSVhsv(240, 77%, 71%)
CMYKcmyk(76.9%, 76.9%, 0%, 28.6%)
CIE-LABlab(28.18, 47.36, -72.55)
CIE-LCHlch(28.18, 86.64, 303.13°)
OKLaboklab(40.12% 0.0064 -0.21)
OKLCHoklch(40.12% 0.21 271.7)
XYZxyz(10.2235, 5.5245, 44.7744)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2AB6 #B6B62A
analogous
#2A70B6 #2A2AB6 #702AB6
triadic
#2A2AB6 #B62A2A #2AB62A
tetradic
#2A2AB6 #B62A70 #B6B62A #2AB670
square
#2A2AB6 #B62A70 #B6B62A #2AB670
split-complementary
#2A2AB6 #B6702A #70B62A
monochromatic
#131353 #1F1F84 #2A2AB6 #4848D5 #7A7AE0

Accessibility & contrast

On white

9.98
#2A2AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2A2AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2AB6
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2AB6#FFFFFF#000000##FFFFFF
##2A2AB61.009.982.119.98
#FFFFFF9.981.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049BA
Deuteranopia (green-blind)
#003BB4
Tritanopia (blue-blind)
#00546F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a2ab6;
/* rgb */ color: rgb(42, 42, 182);
/* oklch */ color: oklch(40.1% 0.210 271.7);
Tailwind
colors: {
  custom: {
    50: '#7c66cd',
    500: '#2a2ab6',
    950: '#000000',
  },
}
SCSS
$custom: #2a2ab6;
$custom-light: #7c66cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2ab6",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 240,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40116,
    "c": 0.21014,
    "h": 271.7
  },
  "luminance": 0.05526
}

Semantic roles & 50–950 ramp

primary
#2A2AB6
secondary
#C8C873
accent
#E642E6
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2A2AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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