#2C52C0#2C52C0

#2C52C0 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.0% C 0.178 H 265.5°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#2C52C0
RGBrgb(44, 82, 192)
HSLhsl(225, 63%, 46%)
HSVhsv(225, 77%, 75%)
CMYKcmyk(77.1%, 57.3%, 0%, 24.7%)
CIE-LABlab(38.51, 26.37, -61.49)
CIE-LCHlch(38.51, 66.91, 293.21°)
OKLaboklab(47.96% -0.0139 -0.1775)
OKLCHoklch(47.96% 0.178 265.5)
XYZxyz(13.5671, 10.3743, 51.1464)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C52C0 #C09A2C
analogous
#2C9CC0 #2C52C0 #502CC0
triadic
#2C52C0 #C02C52 #52C02C
tetradic
#2C52C0 #C02C9C #C09A2C #2CC050
square
#2C52C0 #C02C9C #C09A2C #2CC050
split-complementary
#2C52C0 #C0502C #9CC02C
monochromatic
#15275C #213D8E #2C52C0 #5274D7 #849CE3

Accessibility & contrast

On white

6.83
#2C52C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2C52C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C52C0
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C52C0#FFFFFF#000000##FFFFFF
##2C52C01.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C4
Deuteranopia (green-blind)
#0054BE
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2c52c0;
/* rgb */ color: rgb(44, 82, 192);
/* oklch */ color: oklch(48.0% 0.178 265.5);
Tailwind
colors: {
  custom: {
    50: '#7c82d4',
    500: '#2c52c0',
    950: '#000000',
  },
}
SCSS
$custom: #2c52c0;
$custom-light: #7c82d4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c52c0",
  "rgb": {
    "r": 44,
    "g": 82,
    "b": 192
  },
  "hsl": {
    "h": 224.595,
    "s": 62.712,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47959,
    "c": 0.17806,
    "h": 265.5
  },
  "luminance": 0.10376
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C52C0

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

Preview Lab → · Contrast checker → · Palette generator →

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