#2C52C2#2C52C2

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

Color values

HEX#2C52C2
RGBrgb(44, 82, 194)
HSLhsl(225, 63%, 47%)
HSVhsv(225, 77%, 76%)
CMYKcmyk(77.3%, 57.7%, 0%, 23.9%)
CIE-LABlab(38.66, 27.12, -62.41)
CIE-LCHlch(38.66, 68.05, 293.49°)
OKLaboklab(48.13% -0.0138 -0.1802)
OKLCHoklch(48.13% 0.181 265.6)
XYZxyz(13.7902, 10.4635, 52.3213)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C52C2 #C29C2C
analogous
#2C9DC2 #2C52C2 #512CC2
triadic
#2C52C2 #C22C52 #52C22C
tetradic
#2C52C2 #C22C9D #C29C2C #2CC251
square
#2C52C2 #C22C9D #C29C2C #2CC251
split-complementary
#2C52C2 #C2512C #9DC22C
monochromatic
#15285E #213D90 #2C52C2 #5375D8 #859DE3

Accessibility & contrast

On white

6.79
#2C52C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2C52C2
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C52C2#FFFFFF#000000##FFFFFF
##2C52C21.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.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: #2c52c2;
/* rgb */ color: rgb(44, 82, 194);
/* oklch */ color: oklch(48.1% 0.181 265.6);
Tailwind
colors: {
  custom: {
    50: '#7c82d5',
    500: '#2c52c2',
    950: '#000000',
  },
}
SCSS
$custom: #2c52c2;
$custom-light: #7c82d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c52c2",
  "rgb": {
    "r": 44,
    "g": 82,
    "b": 194
  },
  "hsl": {
    "h": 224.8,
    "s": 63.025,
    "l": 46.667
  },
  "oklch": {
    "l": 0.48125,
    "c": 0.18073,
    "h": 265.6
  },
  "luminance": 0.10465
}

Semantic roles & 50–950 ramp

primary
#2C52C2
secondary
#CDB97D
accent
#BC42E6
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2C52C2

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

Preview Lab → · Contrast checker → · Palette generator →

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