#2C5FC6#2C5FC6

#2C5FC6 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.1% C 0.170 H 262.3°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#2C5FC6
RGBrgb(44, 95, 198)
HSLhsl(220, 64%, 47%)
HSVhsv(220, 78%, 78%)
CMYKcmyk(77.8%, 52%, 0%, 22.4%)
CIE-LABlab(42.45, 20.16, -58.57)
CIE-LCHlch(42.45, 61.95, 288.99°)
OKLaboklab(51.08% -0.0227 -0.1687)
OKLCHoklch(51.08% 0.17 262.3)
XYZxyz(15.3203, 12.7953, 55.0774)
Luminance0.1280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5FC6 #C6932C
analogous
#2CACC6 #2C5FC6 #462CC6
triadic
#2C5FC6 #C62C5F #5FC62C
tetradic
#2C5FC6 #C62CAC #C6932C #2CC646
square
#2C5FC6 #C62CAC #C6932C #2CC646
split-complementary
#2C5FC6 #C6462C #ACC62C
monochromatic
#162F62 #214794 #2C5FC6 #5681D9 #88A7E5

Accessibility & contrast

On white

5.90
#2C5FC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#2C5FC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5FC6
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5FC6#FFFFFF#000000##FFFFFF
##2C5FC61.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#176CCA
Deuteranopia (green-blind)
#005EC4
Tritanopia (blue-blind)
#007889
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2c5fc6;
/* rgb */ color: rgb(44, 95, 198);
/* oklch */ color: oklch(51.1% 0.170 262.3);
Tailwind
colors: {
  custom: {
    50: '#7c8bd8',
    500: '#2c5fc6',
    950: '#000000',
  },
}
SCSS
$custom: #2c5fc6;
$custom-light: #7c8bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5fc6",
  "rgb": {
    "r": 44,
    "g": 95,
    "b": 198
  },
  "hsl": {
    "h": 220.13,
    "s": 63.636,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51083,
    "c": 0.17024,
    "h": 262.3
  },
  "luminance": 0.12797
}

Semantic roles & 50–950 ramp

primary
#2C5FC6
secondary
#CEB480
accent
#B041E7
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C15
muted
#7C7D83

Preview Lab

Preview with #2C5FC6

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

Preview Lab → · Contrast checker → · Palette generator →

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