#2D5EC2#2D5EC2

#2D5EC2 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.6% C 0.166 H 262.5°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#2D5EC2
RGBrgb(45, 94, 194)
HSLhsl(220, 62%, 47%)
HSVhsv(220, 77%, 76%)
CMYKcmyk(76.8%, 51.5%, 0%, 23.9%)
CIE-LABlab(41.93, 19.40, -57.10)
CIE-LCHlch(41.93, 60.30, 288.77°)
OKLaboklab(50.61% -0.0217 -0.1644)
OKLCHoklch(50.61% 0.166 262.5)
XYZxyz(14.8190, 12.4566, 52.6518)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5EC2 #C2912D
analogous
#2DA9C2 #2D5EC2 #462DC2
triadic
#2D5EC2 #C22D5E #5EC22D
tetradic
#2D5EC2 #C22DA9 #C2912D #2DC246
square
#2D5EC2 #C22DA9 #C2912D #2DC246
split-complementary
#2D5EC2 #C2462D #A9C22D
monochromatic
#162E5F #214690 #2D5EC2 #5580D7 #86A5E3

Accessibility & contrast

On white

6.01
#2D5EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#2D5EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5EC2
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5EC2#FFFFFF#000000##FFFFFF
##2D5EC21.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C6AC6
Deuteranopia (green-blind)
#005CC0
Tritanopia (blue-blind)
#007687
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2d5ec2;
/* rgb */ color: rgb(45, 94, 194);
/* oklch */ color: oklch(50.6% 0.166 262.5);
Tailwind
colors: {
  custom: {
    50: '#7c8bd5',
    500: '#2d5ec2',
    950: '#000000',
  },
}
SCSS
$custom: #2d5ec2;
$custom-light: #7c8bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5ec2",
  "rgb": {
    "r": 45,
    "g": 94,
    "b": 194
  },
  "hsl": {
    "h": 220.268,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50608,
    "c": 0.1658,
    "h": 262.5
  },
  "luminance": 0.12458
}

Semantic roles & 50–950 ramp

primary
#2D5EC2
secondary
#CDB37E
accent
#B042E5
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2D5EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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