#2A2AB1#2A2AB1

#2A2AB1 is a dark, highly saturated blue. Relative luminance 0.053; OKLCH L 39.6% C 0.204 H 272.1°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#2A2AB1
RGBrgb(42, 42, 177)
HSLhsl(240, 62%, 43%)
HSVhsv(240, 76%, 69%)
CMYKcmyk(76.3%, 76.3%, 0%, 30.6%)
CIE-LABlab(27.63, 45.72, -70.48)
CIE-LCHlch(27.63, 84.01, 302.97°)
OKLaboklab(39.57% 0.0074 -0.204)
OKLCHoklch(39.57% 0.204 272.1)
XYZxyz(9.7159, 5.3215, 42.1015)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2AB1 #B1B12A
analogous
#2A6DB1 #2A2AB1 #6D2AB1
triadic
#2A2AB1 #B12A2A #2AB12A
tetradic
#2A2AB1 #B12A6D #B1B12A #2AB16D
square
#2A2AB1 #B12A6D #B1B12A #2AB16D
split-complementary
#2A2AB1 #B16D2A #6DB12A
monochromatic
#13134E #1E1E80 #2A2AB1 #4545D3 #7777DF

Accessibility & contrast

On white

10.17
#2A2AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2A2AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2AB1
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2AB1#FFFFFF#000000##FFFFFF
##2A2AB11.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B5
Deuteranopia (green-blind)
#003AAF
Tritanopia (blue-blind)
#00526C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a2ab1;
/* rgb */ color: rgb(42, 42, 177);
/* oklch */ color: oklch(39.6% 0.204 272.1);
Tailwind
colors: {
  custom: {
    50: '#7b66ca',
    500: '#2a2ab1',
    950: '#000000',
  },
}
SCSS
$custom: #2a2ab1;
$custom-light: #7b66ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2ab1",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 240,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.39569,
    "c": 0.20414,
    "h": 272.1
  },
  "luminance": 0.05322
}

Semantic roles & 50–950 ramp

primary
#2A2AB1
secondary
#C6C670
accent
#E543E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A2AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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