#2C52AB#2C52AB

#2C52AB is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.3% C 0.149 H 264.0°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#2C52AB
RGBrgb(44, 82, 171)
HSLhsl(222, 59%, 42%)
HSVhsv(222, 74%, 67%)
CMYKcmyk(74.3%, 52%, 0%, 32.9%)
CIE-LABlab(36.95, 18.39, -51.66)
CIE-LCHlch(36.95, 54.84, 289.60°)
OKLaboklab(46.29% -0.0155 -0.1486)
OKLCHoklch(46.29% 0.149 264)
XYZxyz(11.4041, 9.5091, 39.7546)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C52AB #AB852C
analogous
#2C92AB #2C52AB #452CAB
triadic
#2C52AB #AB2C52 #52AB2C
tetradic
#2C52AB #AB2C92 #AB852C #2CAB45
square
#2C52AB #AB2C92 #AB852C #2CAB45
split-complementary
#2C52AB #AB452C #92AB2C
monochromatic
#13234A #1F3B7A #2C52AB #456ECF #7694DC

Accessibility & contrast

On white

7.24
#2C52AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#2C52AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C52AB
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C52AB#FFFFFF#000000##FFFFFF
##2C52AB1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185DAE
Deuteranopia (green-blind)
#0051A9
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2c52ab;
/* rgb */ color: rgb(44, 82, 171);
/* oklch */ color: oklch(46.3% 0.149 264.0);
Tailwind
colors: {
  custom: {
    50: '#7782c5',
    500: '#2c52ab',
    950: '#000000',
  },
}
SCSS
$custom: #2c52ab;
$custom-light: #7782c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c52ab",
  "rgb": {
    "r": 44,
    "g": 82,
    "b": 171
  },
  "hsl": {
    "h": 222.047,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.46289,
    "c": 0.14941,
    "h": 264
  },
  "luminance": 0.0951
}

Semantic roles & 50–950 ramp

primary
#2C52AB
secondary
#C3AA6F
accent
#B346E2
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2C52AB

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

Preview Lab → · Contrast checker → · Palette generator →

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