#2D51BD#2D51BD

#2D51BD is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.6% C 0.175 H 265.9°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#2D51BD
RGBrgb(45, 81, 189)
HSLhsl(225, 62%, 46%)
HSVhsv(225, 76%, 74%)
CMYKcmyk(76.2%, 57.1%, 0%, 25.9%)
CIE-LABlab(38.05, 26.00, -60.48)
CIE-LCHlch(38.05, 65.84, 293.27°)
OKLaboklab(47.55% -0.0125 -0.1745)
OKLCHoklch(47.55% 0.175 265.9)
XYZxyz(13.2067, 10.1154, 49.3907)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D51BD #BD992D
analogous
#2D99BD #2D51BD #512DBD
triadic
#2D51BD #BD2D51 #51BD2D
tetradic
#2D51BD #BD2D99 #BD992D #2DBD51
square
#2D51BD #BD2D99 #BD992D #2DBD51
split-complementary
#2D51BD #BD512D #99BD2D
monochromatic
#15275A #213C8C #2D51BD #5273D6 #839BE1

Accessibility & contrast

On white

6.95
#2D51BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2D51BD
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D51BD#FFFFFF#000000##FFFFFF
##2D51BD1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C1
Deuteranopia (green-blind)
#0053BB
Tritanopia (blue-blind)
#006C7F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2d51bd;
/* rgb */ color: rgb(45, 81, 189);
/* oklch */ color: oklch(47.6% 0.175 265.9);
Tailwind
colors: {
  custom: {
    50: '#7b81d2',
    500: '#2d51bd',
    950: '#000000',
  },
}
SCSS
$custom: #2d51bd;
$custom-light: #7b81d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d51bd",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 189
  },
  "hsl": {
    "h": 225,
    "s": 61.538,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47554,
    "c": 0.175,
    "h": 265.9
  },
  "luminance": 0.10117
}

Semantic roles & 50–950 ramp

primary
#2D51BD
secondary
#CBB77B
accent
#BC43E5
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2D51BD

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

Preview Lab → · Contrast checker → · Palette generator →

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