#2A52B6#2A52B6

#2A52B6 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.1% C 0.165 H 264.4°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#2A52B6
RGBrgb(42, 82, 182)
HSLhsl(223, 63%, 44%)
HSVhsv(223, 77%, 71%)
CMYKcmyk(76.9%, 54.9%, 0%, 28.6%)
CIE-LABlab(37.67, 22.35, -57.00)
CIE-LCHlch(37.67, 61.22, 291.41°)
OKLaboklab(47.07% -0.0161 -0.1643)
OKLCHoklch(47.07% 0.165 264.4)
XYZxyz(12.4126, 9.9028, 45.5041)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A52B6 #B68E2A
analogous
#2A98B6 #2A52B6 #482AB6
triadic
#2A52B6 #B62A52 #52B62A
tetradic
#2A52B6 #B62A98 #B68E2A #2AB648
square
#2A52B6 #B62A98 #B68E2A #2AB648
split-complementary
#2A52B6 #B6482A #98B62A
monochromatic
#132553 #1F3C84 #2A52B6 #4870D5 #7A97E0

Accessibility & contrast

On white

7.05
#2A52B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#2A52B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A52B6
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A52B6#FFFFFF#000000##FFFFFF
##2A52B61.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB9
Deuteranopia (green-blind)
#0052B4
Tritanopia (blue-blind)
#006B7C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a52b6;
/* rgb */ color: rgb(42, 82, 182);
/* oklch */ color: oklch(47.1% 0.165 264.4);
Tailwind
colors: {
  custom: {
    50: '#7982cd',
    500: '#2a52b6',
    950: '#000000',
  },
}
SCSS
$custom: #2a52b6;
$custom-light: #7982cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a52b6",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 182
  },
  "hsl": {
    "h": 222.857,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47067,
    "c": 0.16512,
    "h": 264.4
  },
  "luminance": 0.09904
}

Semantic roles & 50–950 ramp

primary
#2A52B6
secondary
#C8B073
accent
#B742E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A52B6

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

Preview Lab → · Contrast checker → · Palette generator →

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