#2D51C2#2D51C2

#2D51C2 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.0% C 0.182 H 266.1°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#2D51C2
RGBrgb(45, 81, 194)
HSLhsl(226, 62%, 47%)
HSVhsv(226, 77%, 76%)
CMYKcmyk(76.8%, 58.2%, 0%, 23.9%)
CIE-LABlab(38.44, 27.88, -62.77)
CIE-LCHlch(38.44, 68.68, 293.95°)
OKLaboklab(47.97% -0.0123 -0.1813)
OKLCHoklch(47.97% 0.182 266.1)
XYZxyz(13.7588, 10.3362, 52.2984)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D51C2 #C29E2D
analogous
#2D9CC2 #2D51C2 #532DC2
triadic
#2D51C2 #C22D51 #51C22D
tetradic
#2D51C2 #C22D9C #C29E2D #2DC253
square
#2D51C2 #C22D9C #C29E2D #2DC253
split-complementary
#2D51C2 #C2532D #9CC22D
monochromatic
#16285F #213C90 #2D51C2 #5574D7 #869DE3

Accessibility & contrast

On white

6.85
#2D51C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#2D51C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D51C2
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D51C2#FFFFFF#000000##FFFFFF
##2D51C21.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0054C0
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2d51c2;
/* rgb */ color: rgb(45, 81, 194);
/* oklch */ color: oklch(48.0% 0.182 266.1);
Tailwind
colors: {
  custom: {
    50: '#7c81d5',
    500: '#2d51c2',
    950: '#000000',
  },
}
SCSS
$custom: #2d51c2;
$custom-light: #7c81d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d51c2",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 225.503,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.47969,
    "c": 0.18168,
    "h": 266.1
  },
  "luminance": 0.10338
}

Semantic roles & 50–950 ramp

primary
#2D51C2
secondary
#CDBA7E
accent
#BE42E5
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2D51C2

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

Preview Lab → · Contrast checker → · Palette generator →

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