#2C52A4#2C52A4

#2C52A4 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.8% C 0.140 H 263.3°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#2C52A4
RGBrgb(44, 82, 164)
HSLhsl(221, 58%, 41%)
HSVhsv(221, 73%, 64%)
CMYKcmyk(73.2%, 50%, 0%, 35.7%)
CIE-LABlab(36.46, 15.72, -48.27)
CIE-LCHlch(36.46, 50.77, 288.03°)
OKLaboklab(45.76% -0.0164 -0.1386)
OKLCHoklch(45.76% 0.14 263.3)
XYZxyz(10.7545, 9.2492, 36.3333)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C52A4 #A47E2C
analogous
#2C8EA4 #2C52A4 #422CA4
triadic
#2C52A4 #A42C52 #52A42C
tetradic
#2C52A4 #A42C8E #A47E2C #2CA442
square
#2C52A4 #A42C8E #A47E2C #2CA442
split-complementary
#2C52A4 #A4422C #8EA42C
monochromatic
#122243 #1F3A74 #2C52A4 #416DCC #7192D9

Accessibility & contrast

On white

7.37
#2C52A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#2C52A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C52A4
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C52A4#FFFFFF#000000##FFFFFF
##2C52A41.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235CA7
Deuteranopia (green-blind)
#0051A2
Tritanopia (blue-blind)
#006573
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2c52a4;
/* rgb */ color: rgb(44, 82, 164);
/* oklch */ color: oklch(45.8% 0.140 263.3);
Tailwind
colors: {
  custom: {
    50: '#7582bf',
    500: '#2c52a4',
    950: '#000000',
  },
}
SCSS
$custom: #2c52a4;
$custom-light: #7582bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c52a4",
  "rgb": {
    "r": 44,
    "g": 82,
    "b": 164
  },
  "hsl": {
    "h": 221,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.45763,
    "c": 0.1396,
    "h": 263.3
  },
  "luminance": 0.0925
}

Semantic roles & 50–950 ramp

primary
#2C52A4
secondary
#C0A56B
accent
#B047E1
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2C52A4

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

Preview Lab → · Contrast checker → · Palette generator →

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