#2D51C1#2D51C1

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

Color values

HEX#2D51C1
RGBrgb(45, 81, 193)
HSLhsl(225, 62%, 47%)
HSVhsv(225, 77%, 76%)
CMYKcmyk(76.7%, 58%, 0%, 24.3%)
CIE-LABlab(38.36, 27.51, -62.31)
CIE-LCHlch(38.36, 68.11, 293.82°)
OKLaboklab(47.89% -0.0124 -0.1799)
OKLCHoklch(47.89% 0.18 266.1)
XYZxyz(13.6469, 10.2915, 51.7090)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D51C1 #C19D2D
analogous
#2D9BC1 #2D51C1 #532DC1
triadic
#2D51C1 #C12D51 #51C12D
tetradic
#2D51C1 #C12D9B #C19D2D #2DC153
square
#2D51C1 #C12D9B #C19D2D #2DC153
split-complementary
#2D51C1 #C1532D #9BC12D
monochromatic
#16275E #213C8F #2D51C1 #5474D7 #869CE3

Accessibility & contrast

On white

6.87
#2D51C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2D51C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D51C1
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D51C1#FFFFFF#000000##FFFFFF
##2D51C11.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C5
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2d51c1;
/* rgb */ color: rgb(45, 81, 193);
/* oklch */ color: oklch(47.9% 0.180 266.1);
Tailwind
colors: {
  custom: {
    50: '#7c81d5',
    500: '#2d51c1',
    950: '#000000',
  },
}
SCSS
$custom: #2d51c1;
$custom-light: #7c81d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d51c1",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 193
  },
  "hsl": {
    "h": 225.405,
    "s": 62.185,
    "l": 46.667
  },
  "oklch": {
    "l": 0.47886,
    "c": 0.18034,
    "h": 266.1
  },
  "luminance": 0.10293
}

Semantic roles & 50–950 ramp

primary
#2D51C1
secondary
#CCB97E
accent
#BE43E5
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2D51C1

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

Preview Lab → · Contrast checker → · Palette generator →

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