#2C52B6#2C52B6

#2C52B6 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.1% C 0.165 H 264.9°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#2C52B6
RGBrgb(44, 82, 182)
HSLhsl(223, 61%, 44%)
HSVhsv(223, 76%, 71%)
CMYKcmyk(75.8%, 54.9%, 0%, 28.6%)
CIE-LABlab(37.75, 22.58, -56.87)
CIE-LCHlch(37.75, 61.19, 291.66°)
OKLaboklab(47.15% -0.0145 -0.1639)
OKLCHoklch(47.15% 0.165 264.9)
XYZxyz(12.4965, 9.9461, 45.5081)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C52B6 #B6902C
analogous
#2C97B6 #2C52B6 #4B2CB6
triadic
#2C52B6 #B62C52 #52B62C
tetradic
#2C52B6 #B62C97 #B6902C #2CB64B
square
#2C52B6 #B62C97 #B6902C #2CB64B
split-complementary
#2C52B6 #B64B2C #97B62C
monochromatic
#142653 #203C85 #2C52B6 #4C71D4 #7D98E0

Accessibility & contrast

On white

7.02
#2C52B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2C52B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C52B6
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C52B6#FFFFFF#000000##FFFFFF
##2C52B61.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB9
Deuteranopia (green-blind)
#0053B4
Tritanopia (blue-blind)
#006B7C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2c52b6;
/* rgb */ color: rgb(44, 82, 182);
/* oklch */ color: oklch(47.1% 0.165 264.9);
Tailwind
colors: {
  custom: {
    50: '#7982cd',
    500: '#2c52b6',
    950: '#000000',
  },
}
SCSS
$custom: #2c52b6;
$custom-light: #7982cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c52b6",
  "rgb": {
    "r": 44,
    "g": 82,
    "b": 182
  },
  "hsl": {
    "h": 223.478,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47148,
    "c": 0.16457,
    "h": 264.9
  },
  "luminance": 0.09947
}

Semantic roles & 50–950 ramp

primary
#2C52B6
secondary
#C8B176
accent
#B844E4
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2C52B6

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

Preview Lab → · Contrast checker → · Palette generator →

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