#2C52A3#2C52A3

#2C52A3 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.7% C 0.138 H 263.1°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#2C52A3
RGBrgb(44, 82, 163)
HSLhsl(221, 57%, 41%)
HSVhsv(221, 73%, 64%)
CMYKcmyk(73%, 49.7%, 0%, 36.1%)
CIE-LABlab(36.39, 15.33, -47.79)
CIE-LCHlch(36.39, 50.19, 287.79°)
OKLaboklab(45.69% -0.0165 -0.1372)
OKLCHoklch(45.69% 0.138 263.1)
XYZxyz(10.6645, 9.2133, 35.8595)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C52A3 #A37D2C
analogous
#2C8DA3 #2C52A3 #412CA3
triadic
#2C52A3 #A32C52 #52A32C
tetradic
#2C52A3 #A32C8D #A37D2C #2CA341
square
#2C52A3 #A32C8D #A37D2C #2CA341
split-complementary
#2C52A3 #A3412C #8DA32C
monochromatic
#122243 #1F3A73 #2C52A3 #416DCC #7192D9

Accessibility & contrast

On white

7.39
#2C52A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#2C52A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C52A3
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C52A3#FFFFFF#000000##FFFFFF
##2C52A31.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245BA6
Deuteranopia (green-blind)
#0050A1
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2c52a3;
/* rgb */ color: rgb(44, 82, 163);
/* oklch */ color: oklch(45.7% 0.138 263.1);
Tailwind
colors: {
  custom: {
    50: '#7582bf',
    500: '#2c52a3',
    950: '#000000',
  },
}
SCSS
$custom: #2c52a3;
$custom-light: #7582bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c52a3",
  "rgb": {
    "r": 44,
    "g": 82,
    "b": 163
  },
  "hsl": {
    "h": 220.84,
    "s": 57.488,
    "l": 40.588
  },
  "oklch": {
    "l": 0.45689,
    "c": 0.13819,
    "h": 263.1
  },
  "luminance": 0.09214
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C52A3

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

Preview Lab → · Contrast checker → · Palette generator →

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