#2C52C4#2C52C4

#2C52C4 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.3% C 0.183 H 265.7°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#2C52C4
RGBrgb(44, 82, 196)
HSLhsl(225, 63%, 47%)
HSVhsv(225, 78%, 77%)
CMYKcmyk(77.6%, 58.2%, 0%, 23.1%)
CIE-LABlab(38.82, 27.87, -63.32)
CIE-LCHlch(38.82, 69.18, 293.76°)
OKLaboklab(48.29% -0.0137 -0.1829)
OKLCHoklch(48.29% 0.183 265.7)
XYZxyz(14.0163, 10.5540, 53.5123)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C52C4 #C49E2C
analogous
#2C9EC4 #2C52C4 #522CC4
triadic
#2C52C4 #C42C52 #52C42C
tetradic
#2C52C4 #C42C9E #C49E2C #2CC452
square
#2C52C4 #C42C9E #C49E2C #2CC452
split-complementary
#2C52C4 #C4522C #9EC42C
monochromatic
#162860 #213D92 #2C52C4 #5476D9 #869EE4

Accessibility & contrast

On white

6.75
#2C52C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#2C52C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C52C4
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C52C4#FFFFFF#000000##FFFFFF
##2C52C41.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#0055C2
Tritanopia (blue-blind)
#006F83
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2c52c4;
/* rgb */ color: rgb(44, 82, 196);
/* oklch */ color: oklch(48.3% 0.183 265.7);
Tailwind
colors: {
  custom: {
    50: '#7d82d7',
    500: '#2c52c4',
    950: '#000000',
  },
}
SCSS
$custom: #2c52c4;
$custom-light: #7d82d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c52c4",
  "rgb": {
    "r": 44,
    "g": 82,
    "b": 196
  },
  "hsl": {
    "h": 225,
    "s": 63.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.48292,
    "c": 0.18338,
    "h": 265.7
  },
  "luminance": 0.10556
}

Semantic roles & 50–950 ramp

primary
#2C52C4
secondary
#CDBA7E
accent
#BD41E6
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2C52C4

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

Preview Lab → · Contrast checker → · Palette generator →

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