#2D51D3#2D51D3

#2D51D3 is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 49.4% C 0.204 H 266.6°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#2D51D3
RGBrgb(45, 81, 211)
HSLhsl(227, 65%, 50%)
HSVhsv(227, 79%, 83%)
CMYKcmyk(78.7%, 61.6%, 0%, 17.3%)
CIE-LABlab(39.82, 34.18, -70.35)
CIE-LCHlch(39.82, 78.22, 295.91°)
OKLaboklab(49.43% -0.0121 -0.2035)
OKLCHoklch(49.43% 0.204 266.6)
XYZxyz(15.7784, 11.1441, 62.9348)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D51D3 #D3AF2D
analogous
#2DA4D3 #2D51D3 #5C2DD3
triadic
#2D51D3 #D32D51 #51D32D
tetradic
#2D51D3 #D32DA4 #D3AF2D #2DD35C
square
#2D51D3 #D32DA4 #D3AF2D #2DD35C
split-complementary
#2D51D3 #D35C2D #A4D32D
monochromatic
#172A6E #223DA1 #2D51D3 #607BDE #92A5E8

Accessibility & contrast

On white

6.50
#2D51D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#2D51D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D51D3
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D51D3#FFFFFF#000000##FFFFFF
##2D51D31.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D7
Deuteranopia (green-blind)
#0056D1
Tritanopia (blue-blind)
#00738A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2d51d3;
/* rgb */ color: rgb(45, 81, 211);
/* oklch */ color: oklch(49.4% 0.204 266.6);
Tailwind
colors: {
  custom: {
    50: '#8181e2',
    500: '#2d51d3',
    950: '#000000',
  },
}
SCSS
$custom: #2d51d3;
$custom-light: #8181e2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d51d3",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 211
  },
  "hsl": {
    "h": 226.988,
    "s": 65.354,
    "l": 50.196
  },
  "oklch": {
    "l": 0.49429,
    "c": 0.20387,
    "h": 266.6
  },
  "luminance": 0.11146
}

Semantic roles & 50–950 ramp

primary
#2D51D3
secondary
#D3C389
accent
#C43FE8
background
#F8F7FE
surface
#F0EEFC
border
#CBC9D5
text
#0C0A15
muted
#7D7C84

Preview Lab

Preview with #2D51D3

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

Preview Lab → · Contrast checker → · Palette generator →

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