#2D52D4#2D52D4

#2D52D4 is a mid, highly saturated blue. Relative luminance 0.113; OKLCH L 49.7% C 0.204 H 266.4°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#2D52D4
RGBrgb(45, 82, 212)
HSLhsl(227, 66%, 50%)
HSVhsv(227, 79%, 83%)
CMYKcmyk(78.8%, 61.3%, 0%, 16.9%)
CIE-LABlab(40.15, 33.91, -70.39)
CIE-LCHlch(40.15, 78.13, 295.73°)
OKLaboklab(49.7% -0.0127 -0.2036)
OKLCHoklch(49.7% 0.204 266.4)
XYZxyz(15.9790, 11.3441, 63.6221)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D52D4 #D4AF2D
analogous
#2DA5D4 #2D52D4 #5C2DD4
triadic
#2D52D4 #D42D52 #52D42D
tetradic
#2D52D4 #D42DA5 #D4AF2D #2DD45C
square
#2D52D4 #D42DA5 #D4AF2D #2DD45C
split-complementary
#2D52D4 #D45C2D #A5D42D
monochromatic
#172B70 #213EA3 #2D52D4 #607CDE #93A6E9

Accessibility & contrast

On white

6.42
#2D52D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#2D52D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D52D4
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D52D4#FFFFFF#000000##FFFFFF
##2D52D41.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D8
Deuteranopia (green-blind)
#0057D2
Tritanopia (blue-blind)
#00748B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2d52d4;
/* rgb */ color: rgb(45, 82, 212);
/* oklch */ color: oklch(49.7% 0.204 266.4);
Tailwind
colors: {
  custom: {
    50: '#8182e2',
    500: '#2d52d4',
    950: '#000000',
  },
}
SCSS
$custom: #2d52d4;
$custom-light: #8182e2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d52d4",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 212
  },
  "hsl": {
    "h": 226.707,
    "s": 66.008,
    "l": 50.392
  },
  "oklch": {
    "l": 0.49701,
    "c": 0.20398,
    "h": 266.4
  },
  "luminance": 0.11346
}

Semantic roles & 50–950 ramp

primary
#2D52D4
secondary
#D4C389
accent
#C33FE9
background
#F8F7FE
surface
#F0EEFC
border
#CBC9D5
text
#0C0A15
muted
#7D7C84

Preview Lab

Preview with #2D52D4

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

Preview Lab → · Contrast checker → · Palette generator →

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