#2C52B1#2C52B1

#2C52B1 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.8% C 0.158 H 264.6°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#2C52B1
RGBrgb(44, 82, 177)
HSLhsl(223, 60%, 43%)
HSVhsv(223, 75%, 69%)
CMYKcmyk(75.1%, 53.7%, 0%, 30.6%)
CIE-LABlab(37.38, 20.68, -54.52)
CIE-LCHlch(37.38, 58.31, 290.77°)
OKLaboklab(46.75% -0.0149 -0.157)
OKLCHoklch(46.75% 0.158 264.6)
XYZxyz(11.9890, 9.7431, 42.8352)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C52B1 #B18B2C
analogous
#2C94B1 #2C52B1 #482CB1
triadic
#2C52B1 #B12C52 #52B12C
tetradic
#2C52B1 #B12C94 #B18B2C #2CB148
square
#2C52B1 #B12C94 #B18B2C #2CB148
split-complementary
#2C52B1 #B1482C #94B12C
monochromatic
#14254F #203B80 #2C52B1 #4970D2 #7A96DE

Accessibility & contrast

On white

7.12
#2C52B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2C52B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C52B1
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C52B1#FFFFFF#000000##FFFFFF
##2C52B11.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#085EB4
Deuteranopia (green-blind)
#0052AF
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2c52b1;
/* rgb */ color: rgb(44, 82, 177);
/* oklch */ color: oklch(46.8% 0.158 264.6);
Tailwind
colors: {
  custom: {
    50: '#7882c9',
    500: '#2c52b1',
    950: '#000000',
  },
}
SCSS
$custom: #2c52b1;
$custom-light: #7882c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c52b1",
  "rgb": {
    "r": 44,
    "g": 82,
    "b": 177
  },
  "hsl": {
    "h": 222.857,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.46753,
    "c": 0.15772,
    "h": 264.6
  },
  "luminance": 0.09744
}

Semantic roles & 50–950 ramp

primary
#2C52B1
secondary
#C6AE73
accent
#B644E3
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2C52B1

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

Preview Lab → · Contrast checker → · Palette generator →

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