#2A2AB2#2A2AB2

#2A2AB2 is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 39.7% C 0.205 H 272.0°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#2A2AB2
RGBrgb(42, 42, 178)
HSLhsl(240, 62%, 43%)
HSVhsv(240, 76%, 70%)
CMYKcmyk(76.4%, 76.4%, 0%, 30.2%)
CIE-LABlab(27.74, 46.05, -70.90)
CIE-LCHlch(27.74, 84.54, 303.00°)
OKLaboklab(39.68% 0.0072 -0.2052)
OKLCHoklch(39.68% 0.205 272)
XYZxyz(9.8160, 5.3615, 42.6284)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2AB2 #B2B22A
analogous
#2A6EB2 #2A2AB2 #6E2AB2
triadic
#2A2AB2 #B22A2A #2AB22A
tetradic
#2A2AB2 #B22A6E #B2B22A #2AB26E
square
#2A2AB2 #B22A6E #B2B22A #2AB26E
split-complementary
#2A2AB2 #B26E2A #6EB22A
monochromatic
#13134F #1E1E80 #2A2AB2 #4646D3 #7777DF

Accessibility & contrast

On white

10.13
#2A2AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2A2AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2AB2
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2AB2#FFFFFF#000000##FFFFFF
##2A2AB21.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B6
Deuteranopia (green-blind)
#003BB0
Tritanopia (blue-blind)
#00536C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a2ab2;
/* rgb */ color: rgb(42, 42, 178);
/* oklch */ color: oklch(39.7% 0.205 272.0);
Tailwind
colors: {
  custom: {
    50: '#7b66ca',
    500: '#2a2ab2',
    950: '#000000',
  },
}
SCSS
$custom: #2a2ab2;
$custom-light: #7b66ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2ab2",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 240,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.39678,
    "c": 0.20535,
    "h": 272
  },
  "luminance": 0.05363
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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