#2C5FB6#2C5FB6

#2C5FB6 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 49.9% C 0.149 H 260.4°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#2C5FB6
RGBrgb(44, 95, 182)
HSLhsl(218, 61%, 44%)
HSVhsv(218, 76%, 71%)
CMYKcmyk(75.8%, 47.8%, 0%, 28.6%)
CIE-LABlab(41.37, 14.06, -51.02)
CIE-LCHlch(41.37, 52.92, 285.41°)
OKLaboklab(49.91% -0.0249 -0.1465)
OKLCHoklch(49.91% 0.149 260.4)
XYZxyz(13.5714, 12.0958, 45.8664)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5FB6 #B6832C
analogous
#2CA4B6 #2C5FB6 #3E2CB6
triadic
#2C5FB6 #B62C5F #5FB62C
tetradic
#2C5FB6 #B62CA4 #B6832C #2CB63E
square
#2C5FB6 #B62CA4 #B6832C #2CB63E
split-complementary
#2C5FB6 #B63E2C #A4B62C
monochromatic
#142C53 #204585 #2C5FB6 #4C7ED4 #7DA1E0

Accessibility & contrast

On white

6.14
#2C5FB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#2C5FB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5FB6
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5FB6#FFFFFF#000000##FFFFFF
##2C5FB61.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F68B9
Deuteranopia (green-blind)
#045CB4
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2c5fb6;
/* rgb */ color: rgb(44, 95, 182);
/* oklch */ color: oklch(49.9% 0.149 260.4);
Tailwind
colors: {
  custom: {
    50: '#798bcc',
    500: '#2c5fb6',
    950: '#000000',
  },
}
SCSS
$custom: #2c5fb6;
$custom-light: #798bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5fb6",
  "rgb": {
    "r": 44,
    "g": 95,
    "b": 182
  },
  "hsl": {
    "h": 217.826,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49907,
    "c": 0.14856,
    "h": 260.4
  },
  "luminance": 0.12097
}

Semantic roles & 50–950 ramp

primary
#2C5FB6
secondary
#C8AA76
accent
#A944E4
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2C5FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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