#2C5FD4#2C5FD4

#2C5FD4 is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.2% C 0.189 H 263.5°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#2C5FD4
RGBrgb(44, 95, 212)
HSLhsl(222, 66%, 50%)
HSVhsv(222, 79%, 83%)
CMYKcmyk(79.2%, 55.2%, 0%, 16.9%)
CIE-LABlab(43.47, 25.46, -64.99)
CIE-LCHlch(43.47, 69.80, 291.39°)
OKLaboklab(52.17% -0.0215 -0.1876)
OKLCHoklch(52.17% 0.189 263.5)
XYZxyz(17.0103, 13.4713, 63.9783)
Luminance0.1347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5FD4 #D4A12C
analogous
#2CB3D4 #2C5FD4 #4D2CD4
triadic
#2C5FD4 #D42C5F #5FD42C
tetradic
#2C5FD4 #D42CB3 #D4A12C #2CD44D
square
#2C5FD4 #D42CB3 #D4A12C #2CD44D
split-complementary
#2C5FD4 #D44D2C #B3D42C
monochromatic
#17316F #2148A2 #2C5FD4 #5F86DE #92ACE9

Accessibility & contrast

On white

5.68
#2C5FD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#2C5FD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5FD4
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5FD4#FFFFFF#000000##FFFFFF
##2C5FD41.005.683.695.68
#FFFFFF5.681.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD8
Deuteranopia (green-blind)
#005FD2
Tritanopia (blue-blind)
#007C90
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #2c5fd4;
/* rgb */ color: rgb(44, 95, 212);
/* oklch */ color: oklch(52.2% 0.189 263.5);
Tailwind
colors: {
  custom: {
    50: '#808be2',
    500: '#2c5fd4',
    950: '#000000',
  },
}
SCSS
$custom: #2c5fd4;
$custom-light: #808be2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5fd4",
  "rgb": {
    "r": 44,
    "g": 95,
    "b": 212
  },
  "hsl": {
    "h": 221.786,
    "s": 66.142,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5217,
    "c": 0.18879,
    "h": 263.5
  },
  "luminance": 0.13473
}

Semantic roles & 50–950 ramp

primary
#2C5FD4
secondary
#D3BD88
accent
#B53FE9
background
#F8F8FE
surface
#F0F0FC
border
#CBCBD5
text
#0C0C15
muted
#7D7D84

Preview Lab

Preview with #2C5FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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