#2D5ECA#2D5ECA

#2D5ECA is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.2% C 0.177 H 263.2°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#2D5ECA
RGBrgb(45, 94, 202)
HSLhsl(221, 64%, 48%)
HSVhsv(221, 78%, 79%)
CMYKcmyk(77.7%, 53.5%, 0%, 20.8%)
CIE-LABlab(42.50, 22.43, -60.81)
CIE-LCHlch(42.50, 64.81, 290.25°)
OKLaboklab(51.22% -0.0209 -0.1753)
OKLCHoklch(51.22% 0.177 263.2)
XYZxyz(15.7418, 12.8257, 57.5116)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5ECA #CA992D
analogous
#2DACCA #2D5ECA #4A2DCA
triadic
#2D5ECA #CA2D5E #5ECA2D
tetradic
#2D5ECA #CA2DAC #CA992D #2DCA4A
square
#2D5ECA #CA2DAC #CA992D #2DCA4A
split-complementary
#2D5ECA #CA4A2D #ACCA2D
monochromatic
#172F66 #224798 #2D5ECA #5A82DA #8CA8E5

Accessibility & contrast

On white

5.89
#2D5ECA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#2D5ECA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5ECA
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5ECA#FFFFFF#000000##FFFFFF
##2D5ECA1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#036CCE
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#00788B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2d5eca;
/* rgb */ color: rgb(45, 94, 202);
/* oklch */ color: oklch(51.2% 0.177 263.2);
Tailwind
colors: {
  custom: {
    50: '#7e8bdb',
    500: '#2d5eca',
    950: '#000000',
  },
}
SCSS
$custom: #2d5eca;
$custom-light: #7e8bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5eca",
  "rgb": {
    "r": 45,
    "g": 94,
    "b": 202
  },
  "hsl": {
    "h": 221.274,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51218,
    "c": 0.17652,
    "h": 263.2
  },
  "luminance": 0.12828
}

Semantic roles & 50–950 ramp

primary
#2D5ECA
secondary
#CFB883
accent
#B341E7
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #2D5ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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