#2B52BC#2B52BC

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

Color values

HEX#2B52BC
RGBrgb(43, 82, 188)
HSLhsl(224, 63%, 45%)
HSVhsv(224, 77%, 74%)
CMYKcmyk(77.1%, 56.4%, 0%, 26.3%)
CIE-LABlab(38.16, 24.75, -59.72)
CIE-LCHlch(38.16, 64.65, 292.51°)
OKLaboklab(47.59% -0.0149 -0.1723)
OKLCHoklch(47.59% 0.173 265.1)
XYZxyz(13.0874, 10.1775, 48.8419)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B52BC #BC952B
analogous
#2B9BBC #2B52BC #4C2BBC
triadic
#2B52BC #BC2B52 #52BC2B
tetradic
#2B52BC #BC2B9B #BC952B #2BBC4C
square
#2B52BC #BC2B9B #BC952B #2BBC4C
split-complementary
#2B52BC #BC4C2B #9BBC2B
monochromatic
#142758 #203C8A #2B52BC #4E73D6 #809AE2

Accessibility & contrast

On white

6.92
#2B52BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#2B52BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B52BC
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B52BC#FFFFFF#000000##FFFFFF
##2B52BC1.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.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: #2b52bc;
/* rgb */ color: rgb(43, 82, 188);
/* oklch */ color: oklch(47.6% 0.173 265.1);
Tailwind
colors: {
  custom: {
    50: '#7a82d1',
    500: '#2b52bc',
    950: '#000000',
  },
}
SCSS
$custom: #2b52bc;
$custom-light: #7a82d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b52bc",
  "rgb": {
    "r": 43,
    "g": 82,
    "b": 188
  },
  "hsl": {
    "h": 223.862,
    "s": 62.771,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47591,
    "c": 0.17297,
    "h": 265.1
  },
  "luminance": 0.10179
}

Semantic roles & 50–950 ramp

primary
#2B52BC
secondary
#CBB478
accent
#BA42E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2B52BC

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

Preview Lab → · Contrast checker → · Palette generator →

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