#2D51BC#2D51BC

#2D51BC is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.5% C 0.174 H 265.8°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#2D51BC
RGBrgb(45, 81, 188)
HSLhsl(225, 61%, 46%)
HSVhsv(225, 76%, 74%)
CMYKcmyk(76.1%, 56.9%, 0%, 26.3%)
CIE-LABlab(37.97, 25.63, -60.02)
CIE-LCHlch(37.97, 65.27, 293.12°)
OKLaboklab(47.47% -0.0126 -0.1732)
OKLCHoklch(47.47% 0.174 265.8)
XYZxyz(13.0985, 10.0721, 48.8210)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D51BC #BC982D
analogous
#2D98BC #2D51BC #502DBC
triadic
#2D51BC #BC2D51 #51BC2D
tetradic
#2D51BC #BC2D98 #BC982D #2DBC50
square
#2D51BC #BC2D98 #BC982D #2DBC50
split-complementary
#2D51BC #BC502D #98BC2D
monochromatic
#152659 #213C8B #2D51BC #5172D5 #829AE1

Accessibility & contrast

On white

6.97
#2D51BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#2D51BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D51BC
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D51BC#FFFFFF#000000##FFFFFF
##2D51BC1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#006C7E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2d51bc;
/* rgb */ color: rgb(45, 81, 188);
/* oklch */ color: oklch(47.5% 0.174 265.8);
Tailwind
colors: {
  custom: {
    50: '#7b81d1',
    500: '#2d51bc',
    950: '#000000',
  },
}
SCSS
$custom: #2d51bc;
$custom-light: #7b81d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d51bc",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 224.895,
    "s": 61.373,
    "l": 45.686
  },
  "oklch": {
    "l": 0.47472,
    "c": 0.17366,
    "h": 265.8
  },
  "luminance": 0.10074
}

Semantic roles & 50–950 ramp

primary
#2D51BC
secondary
#CAB67B
accent
#BC43E4
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2D51BC

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

Preview Lab → · Contrast checker → · Palette generator →

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