#2D52C1#2D52C1

#2D52C1 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.1% C 0.179 H 265.8°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#2D52C1
RGBrgb(45, 82, 193)
HSLhsl(225, 62%, 47%)
HSVhsv(225, 77%, 76%)
CMYKcmyk(76.7%, 57.5%, 0%, 24.3%)
CIE-LABlab(38.62, 26.85, -61.89)
CIE-LCHlch(38.62, 67.46, 293.46°)
OKLaboklab(48.08% -0.0131 -0.1786)
OKLCHoklch(48.08% 0.179 265.8)
XYZxyz(13.7217, 10.4412, 51.7339)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D52C1 #C19C2D
analogous
#2D9CC1 #2D52C1 #522DC1
triadic
#2D52C1 #C12D52 #52C12D
tetradic
#2D52C1 #C12D9C #C19C2D #2DC152
square
#2D52C1 #C12D9C #C19C2D #2DC152
split-complementary
#2D52C1 #C1522D #9CC12D
monochromatic
#16285E #213D8F #2D52C1 #5475D7 #869DE3

Accessibility & contrast

On white

6.80
#2D52C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2D52C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D52C1
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D52C1#FFFFFF#000000##FFFFFF
##2D52C11.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C5
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#006E81
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2d52c1;
/* rgb */ color: rgb(45, 82, 193);
/* oklch */ color: oklch(48.1% 0.179 265.8);
Tailwind
colors: {
  custom: {
    50: '#7c82d5',
    500: '#2d52c1',
    950: '#000000',
  },
}
SCSS
$custom: #2d52c1;
$custom-light: #7c82d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d52c1",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 193
  },
  "hsl": {
    "h": 225,
    "s": 62.185,
    "l": 46.667
  },
  "oklch": {
    "l": 0.48082,
    "c": 0.17913,
    "h": 265.8
  },
  "luminance": 0.10443
}

Semantic roles & 50–950 ramp

primary
#2D52C1
secondary
#CCB97E
accent
#BD43E5
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2D52C1

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

Preview Lab → · Contrast checker → · Palette generator →

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