#2D51BA#2D51BA

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

Color values

HEX#2D51BA
RGBrgb(45, 81, 186)
HSLhsl(225, 61%, 45%)
HSVhsv(225, 76%, 73%)
CMYKcmyk(75.8%, 56.5%, 0%, 27.1%)
CIE-LABlab(37.82, 24.87, -59.10)
CIE-LCHlch(37.82, 64.12, 292.83°)
OKLaboklab(47.31% -0.0127 -0.1705)
OKLCHoklch(47.31% 0.171 265.7)
XYZxyz(12.8844, 9.9865, 47.6934)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D51BA #BA962D
analogous
#2D97BA #2D51BA #502DBA
triadic
#2D51BA #BA2D51 #51BA2D
tetradic
#2D51BA #BA2D97 #BA962D #2DBA50
square
#2D51BA #BA2D97 #BA962D #2DBA50
split-complementary
#2D51BA #BA502D #97BA2D
monochromatic
#152657 #213C89 #2D51BA #5072D5 #8199E0

Accessibility & contrast

On white

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

On black

3.00
#2D51BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2D51BA#FFFFFF#000000##FFFFFF
##2D51BA1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d51ba;
/* rgb */ color: rgb(45, 81, 186);
/* oklch */ color: oklch(47.3% 0.171 265.7);
Tailwind
colors: {
  custom: {
    50: '#7b81d0',
    500: '#2d51ba',
    950: '#000000',
  },
}
SCSS
$custom: #2d51ba;
$custom-light: #7b81d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d51ba",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 224.681,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47309,
    "c": 0.17095,
    "h": 265.7
  },
  "luminance": 0.09988
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D51BA

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

Preview Lab → · Contrast checker → · Palette generator →

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