#2C52AF#2C52AF

#2C52AF is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.6% C 0.155 H 264.4°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#2C52AF
RGBrgb(44, 82, 175)
HSLhsl(223, 60%, 43%)
HSVhsv(223, 75%, 69%)
CMYKcmyk(74.9%, 53.1%, 0%, 31.4%)
CIE-LABlab(37.23, 19.92, -53.57)
CIE-LCHlch(37.23, 57.15, 290.40°)
OKLaboklab(46.6% -0.0151 -0.1542)
OKLCHoklch(46.6% 0.155 264.4)
XYZxyz(11.7911, 9.6639, 41.7930)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C52AF #AF892C
analogous
#2C94AF #2C52AF #472CAF
triadic
#2C52AF #AF2C52 #52AF2C
tetradic
#2C52AF #AF2C94 #AF892C #2CAF47
square
#2C52AF #AF2C94 #AF892C #2CAF47
split-complementary
#2C52AF #AF472C #94AF2C
monochromatic
#13244D #203B7E #2C52AF #476FD1 #7896DD

Accessibility & contrast

On white

7.16
#2C52AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2C52AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C52AF
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C52AF#FFFFFF#000000##FFFFFF
##2C52AF1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F5EB2
Deuteranopia (green-blind)
#0052AD
Tritanopia (blue-blind)
#006878
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2c52af;
/* rgb */ color: rgb(44, 82, 175);
/* oklch */ color: oklch(46.6% 0.155 264.4);
Tailwind
colors: {
  custom: {
    50: '#7882c8',
    500: '#2c52af',
    950: '#000000',
  },
}
SCSS
$custom: #2c52af;
$custom-light: #7882c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c52af",
  "rgb": {
    "r": 44,
    "g": 82,
    "b": 175
  },
  "hsl": {
    "h": 222.595,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.46597,
    "c": 0.15496,
    "h": 264.4
  },
  "luminance": 0.09665
}

Semantic roles & 50–950 ramp

primary
#2C52AF
secondary
#C5AD72
accent
#B545E3
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2C52AF

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

Preview Lab → · Contrast checker → · Palette generator →

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