#2C5EB6#2C5EB6

#2C5EB6 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.7% C 0.150 H 260.8°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#2C5EB6
RGBrgb(44, 94, 182)
HSLhsl(218, 61%, 44%)
HSVhsv(218, 76%, 71%)
CMYKcmyk(75.8%, 48.4%, 0%, 28.6%)
CIE-LABlab(41.08, 14.71, -51.47)
CIE-LCHlch(41.08, 53.53, 285.95°)
OKLaboklab(49.69% -0.024 -0.1478)
OKLCHoklch(49.69% 0.15 260.8)
XYZxyz(13.4819, 11.9168, 45.8365)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5EB6 #B6842C
analogous
#2CA3B6 #2C5EB6 #3F2CB6
triadic
#2C5EB6 #B62C5E #5EB62C
tetradic
#2C5EB6 #B62CA3 #B6842C #2CB63F
square
#2C5EB6 #B62CA3 #B6842C #2CB63F
split-complementary
#2C5EB6 #B63F2C #A3B62C
monochromatic
#142B53 #204585 #2C5EB6 #4C7DD4 #7DA1E0

Accessibility & contrast

On white

6.21
#2C5EB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#2C5EB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5EB6
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5EB6#FFFFFF#000000##FFFFFF
##2C5EB61.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D68B9
Deuteranopia (green-blind)
#005BB4
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2c5eb6;
/* rgb */ color: rgb(44, 94, 182);
/* oklch */ color: oklch(49.7% 0.150 260.8);
Tailwind
colors: {
  custom: {
    50: '#798bcc',
    500: '#2c5eb6',
    950: '#000000',
  },
}
SCSS
$custom: #2c5eb6;
$custom-light: #798bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5eb6",
  "rgb": {
    "r": 44,
    "g": 94,
    "b": 182
  },
  "hsl": {
    "h": 218.261,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49689,
    "c": 0.14977,
    "h": 260.8
  },
  "luminance": 0.11918
}

Semantic roles & 50–950 ramp

primary
#2C5EB6
secondary
#C8AA76
accent
#AA44E4
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2C5EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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