#2D52C2#2D52C2

#2D52C2 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.2% C 0.180 H 265.9°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#2D52C2
RGBrgb(45, 82, 194)
HSLhsl(225, 62%, 47%)
HSVhsv(225, 77%, 76%)
CMYKcmyk(76.8%, 57.7%, 0%, 23.9%)
CIE-LABlab(38.70, 27.23, -62.34)
CIE-LCHlch(38.70, 68.03, 293.59°)
OKLaboklab(48.17% -0.013 -0.18)
OKLCHoklch(48.17% 0.18 265.9)
XYZxyz(13.8337, 10.4860, 52.3234)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D52C2 #C29D2D
analogous
#2D9CC2 #2D52C2 #532DC2
triadic
#2D52C2 #C22D52 #52C22D
tetradic
#2D52C2 #C22D9C #C29D2D #2DC253
square
#2D52C2 #C22D9C #C29D2D #2DC253
split-complementary
#2D52C2 #C2532D #9CC22D
monochromatic
#16285F #213D90 #2D52C2 #5575D7 #869DE3

Accessibility & contrast

On white

6.78
#2D52C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#2D52C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D52C2
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D52C2#FFFFFF#000000##FFFFFF
##2D52C21.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0054C0
Tritanopia (blue-blind)
#006E82
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2d52c2;
/* rgb */ color: rgb(45, 82, 194);
/* oklch */ color: oklch(48.2% 0.180 265.9);
Tailwind
colors: {
  custom: {
    50: '#7c82d5',
    500: '#2d52c2',
    950: '#000000',
  },
}
SCSS
$custom: #2d52c2;
$custom-light: #7c82d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d52c2",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 194
  },
  "hsl": {
    "h": 225.101,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.48165,
    "c": 0.18046,
    "h": 265.9
  },
  "luminance": 0.10488
}

Semantic roles & 50–950 ramp

primary
#2D52C2
secondary
#CDB97E
accent
#BD42E5
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2D52C2

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

Preview Lab → · Contrast checker → · Palette generator →

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