#2C52AC#2C52AC

#2C52AC is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.4% C 0.151 H 264.1°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#2C52AC
RGBrgb(44, 82, 172)
HSLhsl(222, 59%, 42%)
HSVhsv(222, 74%, 67%)
CMYKcmyk(74.4%, 52.3%, 0%, 32.5%)
CIE-LABlab(37.02, 18.77, -52.14)
CIE-LCHlch(37.02, 55.42, 289.80°)
OKLaboklab(46.37% -0.0154 -0.15)
OKLCHoklch(46.37% 0.151 264.1)
XYZxyz(11.4998, 9.5474, 40.2585)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C52AC #AC862C
analogous
#2C92AC #2C52AC #462CAC
triadic
#2C52AC #AC2C52 #52AC2C
tetradic
#2C52AC #AC2C92 #AC862C #2CAC46
square
#2C52AC #AC2C92 #AC862C #2CAC46
split-complementary
#2C52AC #AC462C #92AC2C
monochromatic
#13244B #203B7B #2C52AC #466FD0 #7695DC

Accessibility & contrast

On white

7.22
#2C52AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2C52AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C52AC
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C52AC#FFFFFF#000000##FFFFFF
##2C52AC1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165DAF
Deuteranopia (green-blind)
#0052AA
Tritanopia (blue-blind)
#006877
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2c52ac;
/* rgb */ color: rgb(44, 82, 172);
/* oklch */ color: oklch(46.4% 0.151 264.1);
Tailwind
colors: {
  custom: {
    50: '#7782c5',
    500: '#2c52ac',
    950: '#000000',
  },
}
SCSS
$custom: #2c52ac;
$custom-light: #7782c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c52ac",
  "rgb": {
    "r": 44,
    "g": 82,
    "b": 172
  },
  "hsl": {
    "h": 222.188,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.46366,
    "c": 0.1508,
    "h": 264.1
  },
  "luminance": 0.09549
}

Semantic roles & 50–950 ramp

primary
#2C52AC
secondary
#C4AB70
accent
#B445E2
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2C52AC

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

Preview Lab → · Contrast checker → · Palette generator →

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