#2C5FBC#2C5FBC

#2C5FBC is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.3% C 0.157 H 261.2°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#2C5FBC
RGBrgb(44, 95, 188)
HSLhsl(219, 62%, 45%)
HSVhsv(219, 77%, 74%)
CMYKcmyk(76.6%, 49.5%, 0%, 26.3%)
CIE-LABlab(41.77, 16.35, -53.88)
CIE-LCHlch(41.77, 56.31, 286.88°)
OKLaboklab(50.34% -0.024 -0.1549)
OKLCHoklch(50.34% 0.157 261.2)
XYZxyz(14.2047, 12.3491, 49.2022)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5FBC #BC892C
analogous
#2CA7BC #2C5FBC #412CBC
triadic
#2C5FBC #BC2C5F #5FBC2C
tetradic
#2C5FBC #BC2CA7 #BC892C #2CBC41
square
#2C5FBC #BC2CA7 #BC892C #2CBC41
split-complementary
#2C5FBC #BC412C #A7BC2C
monochromatic
#152D59 #20468A #2C5FBC #4F7FD6 #81A3E1

Accessibility & contrast

On white

6.05
#2C5FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#2C5FBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5FBC
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5FBC#FFFFFF#000000##FFFFFF
##2C5FBC1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#286ABF
Deuteranopia (green-blind)
#005CBA
Tritanopia (blue-blind)
#007584
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2c5fbc;
/* rgb */ color: rgb(44, 95, 188);
/* oklch */ color: oklch(50.3% 0.157 261.2);
Tailwind
colors: {
  custom: {
    50: '#7a8bd1',
    500: '#2c5fbc',
    950: '#000000',
  },
}
SCSS
$custom: #2c5fbc;
$custom-light: #7a8bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5fbc",
  "rgb": {
    "r": 44,
    "g": 95,
    "b": 188
  },
  "hsl": {
    "h": 218.75,
    "s": 62.069,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50339,
    "c": 0.15674,
    "h": 261.2
  },
  "luminance": 0.12351
}

Semantic roles & 50–950 ramp

primary
#2C5FBC
secondary
#CAAE79
accent
#AC43E5
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #2C5FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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