#2B52C2#2B52C2

#2B52C2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.1% C 0.181 H 265.4°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#2B52C2
RGBrgb(43, 82, 194)
HSLhsl(225, 64%, 46%)
HSVhsv(225, 78%, 76%)
CMYKcmyk(77.8%, 57.7%, 0%, 23.9%)
CIE-LABlab(38.62, 27.02, -62.47)
CIE-LCHlch(38.62, 68.06, 293.39°)
OKLaboklab(48.09% -0.0146 -0.1804)
OKLCHoklch(48.09% 0.181 265.4)
XYZxyz(13.7477, 10.4416, 52.3194)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B52C2 #C29B2B
analogous
#2B9EC2 #2B52C2 #4F2BC2
triadic
#2B52C2 #C22B52 #52C22B
tetradic
#2B52C2 #C22B9E #C29B2B #2BC24F
square
#2B52C2 #C22B9E #C29B2B #2BC24F
split-complementary
#2B52C2 #C24F2B #9EC22B
monochromatic
#15285E #203D90 #2B52C2 #5274D9 #849DE4

Accessibility & contrast

On white

6.80
#2B52C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2B52C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B52C2
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B52C2#FFFFFF#000000##FFFFFF
##2B52C21.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0054C0
Tritanopia (blue-blind)
#006E82
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2b52c2;
/* rgb */ color: rgb(43, 82, 194);
/* oklch */ color: oklch(48.1% 0.181 265.4);
Tailwind
colors: {
  custom: {
    50: '#7c82d5',
    500: '#2b52c2',
    950: '#000000',
  },
}
SCSS
$custom: #2b52c2;
$custom-light: #7c82d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b52c2",
  "rgb": {
    "r": 43,
    "g": 82,
    "b": 194
  },
  "hsl": {
    "h": 224.503,
    "s": 63.713,
    "l": 46.471
  },
  "oklch": {
    "l": 0.48086,
    "c": 0.181,
    "h": 265.4
  },
  "luminance": 0.10443
}

Semantic roles & 50–950 ramp

primary
#2B52C2
secondary
#CDB87C
accent
#BC41E7
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2B52C2

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

Preview Lab → · Contrast checker → · Palette generator →

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