#2C52B2#2C52B2

#2C52B2 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.8% C 0.159 H 264.7°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#2C52B2
RGBrgb(44, 82, 178)
HSLhsl(223, 60%, 44%)
HSVhsv(223, 75%, 70%)
CMYKcmyk(75.3%, 53.9%, 0%, 30.2%)
CIE-LABlab(37.45, 21.06, -54.99)
CIE-LCHlch(37.45, 58.89, 290.96°)
OKLaboklab(46.83% -0.0148 -0.1584)
OKLCHoklch(46.83% 0.159 264.7)
XYZxyz(12.0890, 9.7831, 43.3620)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C52B2 #B28C2C
analogous
#2C95B2 #2C52B2 #492CB2
triadic
#2C52B2 #B22C52 #52B22C
tetradic
#2C52B2 #B22C95 #B28C2C #2CB249
square
#2C52B2 #B22C95 #B28C2C #2CB249
split-complementary
#2C52B2 #B2492C #95B22C
monochromatic
#142550 #203B81 #2C52B2 #4970D2 #7A97DE

Accessibility & contrast

On white

7.10
#2C52B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2C52B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C52B2
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C52B2#FFFFFF#000000##FFFFFF
##2C52B21.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#055FB5
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2c52b2;
/* rgb */ color: rgb(44, 82, 178);
/* oklch */ color: oklch(46.8% 0.159 264.7);
Tailwind
colors: {
  custom: {
    50: '#7882ca',
    500: '#2c52b2',
    950: '#000000',
  },
}
SCSS
$custom: #2c52b2;
$custom-light: #7882ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2c52b2",
  "rgb": {
    "r": 44,
    "g": 82,
    "b": 178
  },
  "hsl": {
    "h": 222.985,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.46831,
    "c": 0.15909,
    "h": 264.7
  },
  "luminance": 0.09784
}

Semantic roles & 50–950 ramp

primary
#2C52B2
secondary
#C6AF73
accent
#B644E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2C52B2

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

Preview Lab → · Contrast checker → · Palette generator →

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