#2D52C4#2D52C4

#2D52C4 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.3% C 0.183 H 265.9°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#2D52C4
RGBrgb(45, 82, 196)
HSLhsl(225, 63%, 47%)
HSVhsv(225, 77%, 77%)
CMYKcmyk(77%, 58.2%, 0%, 23.1%)
CIE-LABlab(38.86, 27.98, -63.25)
CIE-LCHlch(38.86, 69.16, 293.86°)
OKLaboklab(48.33% -0.0129 -0.1827)
OKLCHoklch(48.33% 0.183 265.9)
XYZxyz(14.0598, 10.5764, 53.5143)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D52C4 #C49F2D
analogous
#2D9EC4 #2D52C4 #532DC4
triadic
#2D52C4 #C42D52 #52C42D
tetradic
#2D52C4 #C42D9E #C49F2D #2DC453
square
#2D52C4 #C42D9E #C49F2D #2DC453
split-complementary
#2D52C4 #C4532D #9EC42D
monochromatic
#162860 #223D92 #2D52C4 #5676D8 #889EE4

Accessibility & contrast

On white

6.74
#2D52C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#2D52C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D52C4
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D52C4#FFFFFF#000000##FFFFFF
##2D52C41.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#0055C2
Tritanopia (blue-blind)
#006F83
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2d52c4;
/* rgb */ color: rgb(45, 82, 196);
/* oklch */ color: oklch(48.3% 0.183 265.9);
Tailwind
colors: {
  custom: {
    50: '#7d82d7',
    500: '#2d52c4',
    950: '#000000',
  },
}
SCSS
$custom: #2d52c4;
$custom-light: #7d82d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d52c4",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 196
  },
  "hsl": {
    "h": 225.298,
    "s": 62.656,
    "l": 47.255
  },
  "oklch": {
    "l": 0.48332,
    "c": 0.18312,
    "h": 265.9
  },
  "luminance": 0.10578
}

Semantic roles & 50–950 ramp

primary
#2D52C4
secondary
#CDBA80
accent
#BE42E6
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2D52C4

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

Preview Lab → · Contrast checker → · Palette generator →

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