#2C5CB6#2C5CB6

#2C5CB6 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.3% C 0.152 H 261.5°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#2C5CB6
RGBrgb(44, 92, 182)
HSLhsl(219, 61%, 44%)
HSVhsv(219, 76%, 71%)
CMYKcmyk(75.8%, 49.5%, 0%, 28.6%)
CIE-LABlab(40.52, 16.01, -52.39)
CIE-LCHlch(40.52, 54.78, 287.00°)
OKLaboklab(49.26% -0.0224 -0.1505)
OKLCHoklch(49.26% 0.152 261.5)
XYZxyz(13.3063, 11.5657, 45.7780)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5CB6 #B6862C
analogous
#2CA1B6 #2C5CB6 #412CB6
triadic
#2C5CB6 #B62C5C #5CB62C
tetradic
#2C5CB6 #B62CA1 #B6862C #2CB641
square
#2C5CB6 #B62CA1 #B6862C #2CB641
split-complementary
#2C5CB6 #B6412C #A1B62C
monochromatic
#142A53 #204385 #2C5CB6 #4C7BD4 #7D9FE0

Accessibility & contrast

On white

6.34
#2C5CB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#2C5CB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5CB6
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5CB6#FFFFFF#000000##FFFFFF
##2C5CB61.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2766B9
Deuteranopia (green-blind)
#005AB4
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2c5cb6;
/* rgb */ color: rgb(44, 92, 182);
/* oklch */ color: oklch(49.3% 0.152 261.5);
Tailwind
colors: {
  custom: {
    50: '#7989cc',
    500: '#2c5cb6',
    950: '#000000',
  },
}
SCSS
$custom: #2c5cb6;
$custom-light: #7989cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5cb6",
  "rgb": {
    "r": 44,
    "g": 92,
    "b": 182
  },
  "hsl": {
    "h": 219.13,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49255,
    "c": 0.15221,
    "h": 261.5
  },
  "luminance": 0.11567
}

Semantic roles & 50–950 ramp

primary
#2C5CB6
secondary
#C8AB76
accent
#AC44E4
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2C5CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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