#2C5FBA#2C5FBA

#2C5FBA is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.2% C 0.154 H 260.9°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#2C5FBA
RGBrgb(44, 95, 186)
HSLhsl(218, 62%, 45%)
HSVhsv(218, 76%, 73%)
CMYKcmyk(76.3%, 48.9%, 0%, 27.1%)
CIE-LABlab(41.63, 15.59, -52.93)
CIE-LCHlch(41.63, 55.18, 286.41°)
OKLaboklab(50.19% -0.0243 -0.1521)
OKLCHoklch(50.19% 0.154 260.9)
XYZxyz(13.9906, 12.2635, 48.0746)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5FBA #BA872C
analogous
#2CA6BA #2C5FBA #402CBA
triadic
#2C5FBA #BA2C5F #5FBA2C
tetradic
#2C5FBA #BA2CA6 #BA872C #2CBA40
square
#2C5FBA #BA2CA6 #BA872C #2CBA40
split-complementary
#2C5FBA #BA402C #A6BA2C
monochromatic
#152C57 #204689 #2C5FBA #4E7FD5 #80A2E1

Accessibility & contrast

On white

6.08
#2C5FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#2C5FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5FBA
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5FBA#FFFFFF#000000##FFFFFF
##2C5FBA1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B69BD
Deuteranopia (green-blind)
#005CB8
Tritanopia (blue-blind)
#007583
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2c5fba;
/* rgb */ color: rgb(44, 95, 186);
/* oklch */ color: oklch(50.2% 0.154 260.9);
Tailwind
colors: {
  custom: {
    50: '#7a8bcf',
    500: '#2c5fba',
    950: '#000000',
  },
}
SCSS
$custom: #2c5fba;
$custom-light: #7a8bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5fba",
  "rgb": {
    "r": 44,
    "g": 95,
    "b": 186
  },
  "hsl": {
    "h": 218.451,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50194,
    "c": 0.15401,
    "h": 260.9
  },
  "luminance": 0.12265
}

Semantic roles & 50–950 ramp

primary
#2C5FBA
secondary
#CAAC78
accent
#AB43E5
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #2C5FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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