#2D52B6#2D52B6

#2D52B6 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.2% C 0.164 H 265.2°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#2D52B6
RGBrgb(45, 82, 182)
HSLhsl(224, 60%, 45%)
HSVhsv(224, 75%, 71%)
CMYKcmyk(75.3%, 54.9%, 0%, 28.6%)
CIE-LABlab(37.79, 22.70, -56.80)
CIE-LCHlch(37.79, 61.17, 291.79°)
OKLaboklab(47.19% -0.0137 -0.1637)
OKLCHoklch(47.19% 0.164 265.2)
XYZxyz(12.5400, 9.9685, 45.5101)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D52B6 #B6912D
analogous
#2D96B6 #2D52B6 #4D2DB6
triadic
#2D52B6 #B62D52 #52B62D
tetradic
#2D52B6 #B62D96 #B6912D #2DB64D
square
#2D52B6 #B62D96 #B6912D #2DB64D
split-complementary
#2D52B6 #B64D2D #96B62D
monochromatic
#152654 #213C85 #2D52B6 #4D71D3 #7E98DF

Accessibility & contrast

On white

7.01
#2D52B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2D52B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D52B6
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D52B6#FFFFFF#000000##FFFFFF
##2D52B61.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060B9
Deuteranopia (green-blind)
#0053B4
Tritanopia (blue-blind)
#006A7C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2d52b6;
/* rgb */ color: rgb(45, 82, 182);
/* oklch */ color: oklch(47.2% 0.164 265.2);
Tailwind
colors: {
  custom: {
    50: '#7a82cd',
    500: '#2d52b6',
    950: '#000000',
  },
}
SCSS
$custom: #2d52b6;
$custom-light: #7a82cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d52b6",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 182
  },
  "hsl": {
    "h": 223.796,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47189,
    "c": 0.16428,
    "h": 265.2
  },
  "luminance": 0.0997
}

Semantic roles & 50–950 ramp

primary
#2D52B6
secondary
#C8B277
accent
#B944E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #2D52B6

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

Preview Lab → · Contrast checker → · Palette generator →

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