#2A52BC#2A52BC

#2A52BC is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.6% C 0.173 H 264.8°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#2A52BC
RGBrgb(42, 82, 188)
HSLhsl(224, 63%, 45%)
HSVhsv(224, 78%, 74%)
CMYKcmyk(77.7%, 56.4%, 0%, 26.3%)
CIE-LABlab(38.12, 24.64, -59.78)
CIE-LCHlch(38.12, 64.66, 292.40°)
OKLaboklab(47.55% -0.0156 -0.1725)
OKLCHoklch(47.55% 0.173 264.8)
XYZxyz(13.0460, 10.1562, 48.8400)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A52BC #BC942A
analogous
#2A9BBC #2A52BC #4B2ABC
triadic
#2A52BC #BC2A52 #52BC2A
tetradic
#2A52BC #BC2A9B #BC942A #2ABC4B
square
#2A52BC #BC2A9B #BC942A #2ABC4B
split-complementary
#2A52BC #BC4B2A #9BBC2A
monochromatic
#142658 #1F3C8A #2A52BC #4C72D7 #7E9AE2

Accessibility & contrast

On white

6.93
#2A52BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2A52BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A52BC
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A52BC#FFFFFF#000000##FFFFFF
##2A52BC1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#006C7F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a52bc;
/* rgb */ color: rgb(42, 82, 188);
/* oklch */ color: oklch(47.6% 0.173 264.8);
Tailwind
colors: {
  custom: {
    50: '#7a82d1',
    500: '#2a52bc',
    950: '#000000',
  },
}
SCSS
$custom: #2a52bc;
$custom-light: #7a82d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a52bc",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 188
  },
  "hsl": {
    "h": 223.562,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.47552,
    "c": 0.17324,
    "h": 264.8
  },
  "luminance": 0.10158
}

Semantic roles & 50–950 ramp

primary
#2A52BC
secondary
#CBB477
accent
#B941E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2A52BC

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

Preview Lab → · Contrast checker → · Palette generator →

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