#2D52B9#2D52B9

#2D52B9 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.4% C 0.168 H 265.4°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#2D52B9
RGBrgb(45, 82, 185)
HSLhsl(224, 61%, 45%)
HSVhsv(224, 76%, 73%)
CMYKcmyk(75.7%, 55.7%, 0%, 27.5%)
CIE-LABlab(38.01, 23.84, -58.20)
CIE-LCHlch(38.01, 62.89, 292.28°)
OKLaboklab(47.43% -0.0135 -0.1678)
OKLCHoklch(47.43% 0.168 265.4)
XYZxyz(12.8534, 10.0938, 47.1604)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D52B9 #B9942D
analogous
#2D98B9 #2D52B9 #4E2DB9
triadic
#2D52B9 #B92D52 #52B92D
tetradic
#2D52B9 #B92D98 #B9942D #2DB94E
square
#2D52B9 #B92D98 #B9942D #2DB94E
split-complementary
#2D52B9 #B94E2D #98B92D
monochromatic
#152657 #213C88 #2D52B9 #4F72D4 #809AE0

Accessibility & contrast

On white

6.96
#2D52B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#2D52B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D52B9
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D52B9#FFFFFF#000000##FFFFFF
##2D52B91.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BD
Deuteranopia (green-blind)
#0053B7
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2d52b9;
/* rgb */ color: rgb(45, 82, 185);
/* oklch */ color: oklch(47.4% 0.168 265.4);
Tailwind
colors: {
  custom: {
    50: '#7a82cf',
    500: '#2d52b9',
    950: '#000000',
  },
}
SCSS
$custom: #2d52b9;
$custom-light: #7a82cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d52b9",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 185
  },
  "hsl": {
    "h": 224.143,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.47429,
    "c": 0.16836,
    "h": 265.4
  },
  "luminance": 0.10095
}

Semantic roles & 50–950 ramp

primary
#2D52B9
secondary
#C9B479
accent
#BA44E4
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2D52B9

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

Preview Lab → · Contrast checker → · Palette generator →

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