#2A52B9#2A52B9

#2A52B9 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.3% C 0.169 H 264.6°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#2A52B9
RGBrgb(42, 82, 185)
HSLhsl(223, 63%, 45%)
HSVhsv(223, 77%, 73%)
CMYKcmyk(77.3%, 55.7%, 0%, 27.5%)
CIE-LABlab(37.89, 23.50, -58.40)
CIE-LCHlch(37.89, 62.95, 291.92°)
OKLaboklab(47.31% -0.0158 -0.1684)
OKLCHoklch(47.31% 0.169 264.6)
XYZxyz(12.7260, 10.0282, 47.1545)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A52B9 #B9912A
analogous
#2A9AB9 #2A52B9 #4A2AB9
triadic
#2A52B9 #B92A52 #52B92A
tetradic
#2A52B9 #B92A9A #B9912A #2AB94A
square
#2A52B9 #B92A9A #B9912A #2AB94A
split-complementary
#2A52B9 #B94A2A #9AB92A
monochromatic
#132655 #1F3C87 #2A52B9 #4A71D6 #7C98E1

Accessibility & contrast

On white

6.99
#2A52B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#2A52B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A52B9
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A52B9#FFFFFF#000000##FFFFFF
##2A52B91.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BD
Deuteranopia (green-blind)
#0053B7
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a52b9;
/* rgb */ color: rgb(42, 82, 185);
/* oklch */ color: oklch(47.3% 0.169 264.6);
Tailwind
colors: {
  custom: {
    50: '#7982cf',
    500: '#2a52b9',
    950: '#000000',
  },
}
SCSS
$custom: #2a52b9;
$custom-light: #7982cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a52b9",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 185
  },
  "hsl": {
    "h": 223.217,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47308,
    "c": 0.16919,
    "h": 264.6
  },
  "luminance": 0.1003
}

Semantic roles & 50–950 ramp

primary
#2A52B9
secondary
#CAB275
accent
#B842E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2A52B9

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

Preview Lab → · Contrast checker → · Palette generator →

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