#2C52C1#2C52C1

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

Color values

HEX#2C52C1
RGBrgb(44, 82, 193)
HSLhsl(225, 63%, 46%)
HSVhsv(225, 77%, 76%)
CMYKcmyk(77.2%, 57.5%, 0%, 24.3%)
CIE-LABlab(38.58, 26.74, -61.95)
CIE-LCHlch(38.58, 67.48, 293.35°)
OKLaboklab(48.04% -0.0138 -0.1789)
OKLCHoklch(48.04% 0.179 265.6)
XYZxyz(13.6782, 10.4188, 51.7319)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C52C1 #C19B2C
analogous
#2C9DC1 #2C52C1 #512CC1
triadic
#2C52C1 #C12C52 #52C12C
tetradic
#2C52C1 #C12C9D #C19B2C #2CC151
square
#2C52C1 #C12C9D #C19B2C #2CC151
split-complementary
#2C52C1 #C1512C #9DC12C
monochromatic
#15285D #213D8F #2C52C1 #5374D8 #849DE3

Accessibility & contrast

On white

6.81
#2C52C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2C52C1
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C52C1#FFFFFF#000000##FFFFFF
##2C52C11.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C5
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#006E81
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2c52c1;
/* rgb */ color: rgb(44, 82, 193);
/* oklch */ color: oklch(48.0% 0.179 265.6);
Tailwind
colors: {
  custom: {
    50: '#7c82d5',
    500: '#2c52c1',
    950: '#000000',
  },
}
SCSS
$custom: #2c52c1;
$custom-light: #7c82d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c52c1",
  "rgb": {
    "r": 44,
    "g": 82,
    "b": 193
  },
  "hsl": {
    "h": 224.698,
    "s": 62.869,
    "l": 46.471
  },
  "oklch": {
    "l": 0.48042,
    "c": 0.1794,
    "h": 265.6
  },
  "luminance": 0.1042
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C52C1

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

Preview Lab → · Contrast checker → · Palette generator →

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