#2C5BAC#2C5BAC

#2C5BAC is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.3% C 0.140 H 260.5°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#2C5BAC
RGBrgb(44, 91, 172)
HSLhsl(218, 59%, 42%)
HSVhsv(218, 74%, 67%)
CMYKcmyk(74.4%, 47.1%, 0%, 32.5%)
CIE-LABlab(39.57, 12.85, -48.02)
CIE-LCHlch(39.57, 49.71, 284.98°)
OKLaboklab(48.32% -0.0231 -0.1377)
OKLCHoklch(48.32% 0.14 260.5)
XYZxyz(12.2235, 10.9949, 40.4997)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5BAC #AC7D2C
analogous
#2C9BAC #2C5BAC #3D2CAC
triadic
#2C5BAC #AC2C5B #5BAC2C
tetradic
#2C5BAC #AC2C9B #AC7D2C #2CAC3D
square
#2C5BAC #AC2C9B #AC7D2C #2CAC3D
split-complementary
#2C5BAC #AC3D2C #9BAC2C
monochromatic
#13274B #20417B #2C5BAC #4678D0 #769CDC

Accessibility & contrast

On white

6.56
#2C5BAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#2C5BAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5BAC
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5BAC#FFFFFF#000000##FFFFFF
##2C5BAC1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3063AF
Deuteranopia (green-blind)
#1058AA
Tritanopia (blue-blind)
#006E7B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2c5bac;
/* rgb */ color: rgb(44, 91, 172);
/* oklch */ color: oklch(48.3% 0.140 260.5);
Tailwind
colors: {
  custom: {
    50: '#7788c5',
    500: '#2c5bac',
    950: '#000000',
  },
}
SCSS
$custom: #2c5bac;
$custom-light: #7788c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5bac",
  "rgb": {
    "r": 44,
    "g": 91,
    "b": 172
  },
  "hsl": {
    "h": 217.969,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48318,
    "c": 0.13965,
    "h": 260.5
  },
  "luminance": 0.10996
}

Semantic roles & 50–950 ramp

primary
#2C5BAC
secondary
#C4A570
accent
#A945E2
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2C5BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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