#2D51B2#2D51B2

#2D51B2 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.7% C 0.160 H 265.3°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#2D51B2
RGBrgb(45, 81, 178)
HSLhsl(224, 60%, 44%)
HSVhsv(224, 75%, 70%)
CMYKcmyk(74.7%, 54.5%, 0%, 30.2%)
CIE-LABlab(37.22, 21.85, -55.37)
CIE-LCHlch(37.22, 59.52, 291.54°)
OKLaboklab(46.67% -0.0132 -0.1595)
OKLCHoklch(46.67% 0.16 265.3)
XYZxyz(12.0577, 9.6558, 43.3391)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D51B2 #B28E2D
analogous
#2D93B2 #2D51B2 #4B2DB2
triadic
#2D51B2 #B22D51 #51B22D
tetradic
#2D51B2 #B22D93 #B28E2D #2DB24B
square
#2D51B2 #B22D93 #B28E2D #2DB24B
split-complementary
#2D51B2 #B24B2D #93B22D
monochromatic
#142550 #213B81 #2D51B2 #4B6FD1 #7C96DE

Accessibility & contrast

On white

7.16
#2D51B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2D51B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D51B2
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D51B2#FFFFFF#000000##FFFFFF
##2D51B21.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB5
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2d51b2;
/* rgb */ color: rgb(45, 81, 178);
/* oklch */ color: oklch(46.7% 0.160 265.3);
Tailwind
colors: {
  custom: {
    50: '#7981ca',
    500: '#2d51b2',
    950: '#000000',
  },
}
SCSS
$custom: #2d51b2;
$custom-light: #7981ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2d51b2",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 223.759,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46666,
    "c": 0.16005,
    "h": 265.3
  },
  "luminance": 0.09657
}

Semantic roles & 50–950 ramp

primary
#2D51B2
secondary
#C6B075
accent
#B845E3
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2D51B2

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

Preview Lab → · Contrast checker → · Palette generator →

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