#2A52AB#2A52AB

#2A52AB is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.2% C 0.150 H 263.5°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#2A52AB
RGBrgb(42, 82, 171)
HSLhsl(221, 61%, 42%)
HSVhsv(221, 75%, 67%)
CMYKcmyk(75.4%, 52%, 0%, 32.9%)
CIE-LABlab(36.87, 18.13, -51.79)
CIE-LCHlch(36.87, 54.88, 289.30°)
OKLaboklab(46.21% -0.0171 -0.149)
OKLCHoklch(46.21% 0.15 263.5)
XYZxyz(11.3202, 9.4658, 39.7507)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A52AB #AB832A
analogous
#2A93AB #2A52AB #422AAB
triadic
#2A52AB #AB2A52 #52AB2A
tetradic
#2A52AB #AB2A93 #AB832A #2AAB42
square
#2A52AB #AB2A93 #AB832A #2AAB42
split-complementary
#2A52AB #AB422A #93AB2A
monochromatic
#122349 #1E3A7A #2A52AB #426ED1 #7394DD

Accessibility & contrast

On white

7.26
#2A52AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2A52AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A52AB
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A52AB#FFFFFF#000000##FFFFFF
##2A52AB1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185DAE
Deuteranopia (green-blind)
#0051A9
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a52ab;
/* rgb */ color: rgb(42, 82, 171);
/* oklch */ color: oklch(46.2% 0.150 263.5);
Tailwind
colors: {
  custom: {
    50: '#7682c5',
    500: '#2a52ab',
    950: '#000000',
  },
}
SCSS
$custom: #2a52ab;
$custom-light: #7682c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a52ab",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 171
  },
  "hsl": {
    "h": 221.395,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46206,
    "c": 0.15001,
    "h": 263.5
  },
  "luminance": 0.09467
}

Semantic roles & 50–950 ramp

primary
#2A52AB
secondary
#C4A96D
accent
#B244E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A52AB

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

Preview Lab → · Contrast checker → · Palette generator →

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