#2C5BA6#2C5BA6

#2C5BA6 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 47.9% C 0.131 H 259.4°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#2C5BA6
RGBrgb(44, 91, 166)
HSLhsl(217, 58%, 41%)
HSVhsv(217, 73%, 65%)
CMYKcmyk(73.5%, 45.2%, 0%, 34.9%)
CIE-LABlab(39.19, 10.56, -45.08)
CIE-LCHlch(39.19, 46.30, 283.18°)
OKLaboklab(47.9% -0.0241 -0.1291)
OKLCHoklch(47.9% 0.131 259.4)
XYZxyz(11.6602, 10.7695, 37.5332)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5BA6 #A6772C
analogous
#2C98A6 #2C5BA6 #3A2CA6
triadic
#2C5BA6 #A62C5B #5BA62C
tetradic
#2C5BA6 #A62C98 #A6772C #2CA63A
square
#2C5BA6 #A62C98 #A6772C #2CA63A
split-complementary
#2C5BA6 #A63A2C #98A62C
monochromatic
#122645 #1F4076 #2C5BA6 #4278CD #739ADA

Accessibility & contrast

On white

6.66
#2C5BA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#2C5BA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5BA6
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5BA6#FFFFFF#000000##FFFFFF
##2C5BA61.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3562A9
Deuteranopia (green-blind)
#1D57A4
Tritanopia (blue-blind)
#006D78
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2c5ba6;
/* rgb */ color: rgb(44, 91, 166);
/* oklch */ color: oklch(47.9% 0.131 259.4);
Tailwind
colors: {
  custom: {
    50: '#7588c1',
    500: '#2c5ba6',
    950: '#000000',
  },
}
SCSS
$custom: #2c5ba6;
$custom-light: #7588c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5ba6",
  "rgb": {
    "r": 44,
    "g": 91,
    "b": 166
  },
  "hsl": {
    "h": 216.885,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47901,
    "c": 0.13131,
    "h": 259.4
  },
  "luminance": 0.10771
}

Semantic roles & 50–950 ramp

primary
#2C5BA6
secondary
#C1A16D
accent
#A646E1
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2C5BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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