#2D51B3#2D51B3

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

Color values

HEX#2D51B3
RGBrgb(45, 81, 179)
HSLhsl(224, 60%, 44%)
HSVhsv(224, 75%, 70%)
CMYKcmyk(74.9%, 54.7%, 0%, 29.8%)
CIE-LABlab(37.29, 22.23, -55.84)
CIE-LCHlch(37.29, 60.10, 291.71°)
OKLaboklab(46.75% -0.0132 -0.1609)
OKLCHoklch(46.75% 0.161 265.3)
XYZxyz(12.1584, 9.6961, 43.8698)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D51B3 #B38F2D
analogous
#2D94B3 #2D51B3 #4C2DB3
triadic
#2D51B3 #B32D51 #51B32D
tetradic
#2D51B3 #B32D94 #B38F2D #2DB34C
square
#2D51B3 #B32D94 #B38F2D #2DB34C
split-complementary
#2D51B3 #B34C2D #94B32D
monochromatic
#142551 #213B82 #2D51B3 #4B6FD2 #7C97DE

Accessibility & contrast

On white

7.14
#2D51B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#2D51B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D51B3
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D51B3#FFFFFF#000000##FFFFFF
##2D51B31.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2d51b3;
/* rgb */ color: rgb(45, 81, 179);
/* oklch */ color: oklch(46.7% 0.161 265.3);
Tailwind
colors: {
  custom: {
    50: '#7981ca',
    500: '#2d51b3',
    950: '#000000',
  },
}
SCSS
$custom: #2d51b3;
$custom-light: #7981ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2d51b3",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 179
  },
  "hsl": {
    "h": 223.881,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.46746,
    "c": 0.16142,
    "h": 265.3
  },
  "luminance": 0.09697
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D51B3

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

Preview Lab → · Contrast checker → · Palette generator →

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