#2D51B9#2D51B9

#2D51B9 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.2% C 0.170 H 265.7°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#2D51B9
RGBrgb(45, 81, 185)
HSLhsl(225, 61%, 45%)
HSVhsv(225, 76%, 73%)
CMYKcmyk(75.7%, 56.2%, 0%, 27.5%)
CIE-LABlab(37.74, 24.50, -58.64)
CIE-LCHlch(37.74, 63.55, 292.67°)
OKLaboklab(47.23% -0.0128 -0.1691)
OKLCHoklch(47.23% 0.17 265.7)
XYZxyz(12.7785, 9.9441, 47.1355)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D51B9 #B9952D
analogous
#2D97B9 #2D51B9 #4F2DB9
triadic
#2D51B9 #B92D51 #51B92D
tetradic
#2D51B9 #B92D97 #B9952D #2DB94F
square
#2D51B9 #B92D97 #B9952D #2DB94F
split-complementary
#2D51B9 #B94F2D #97B92D
monochromatic
#152657 #213B88 #2D51B9 #4F71D4 #8099E0

Accessibility & contrast

On white

7.03
#2D51B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D51B9
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D51B9#FFFFFF#000000##FFFFFF
##2D51B91.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.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: #2d51b9;
/* rgb */ color: rgb(45, 81, 185);
/* oklch */ color: oklch(47.2% 0.170 265.7);
Tailwind
colors: {
  custom: {
    50: '#7a81cf',
    500: '#2d51b9',
    950: '#000000',
  },
}
SCSS
$custom: #2d51b9;
$custom-light: #7a81cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d51b9",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 185
  },
  "hsl": {
    "h": 224.571,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.47227,
    "c": 0.1696,
    "h": 265.7
  },
  "luminance": 0.09946
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D51B9

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

Preview Lab → · Contrast checker → · Palette generator →

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