#2C5FB8#2C5FB8

#2C5FB8 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.0% C 0.151 H 260.7°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#2C5FB8
RGBrgb(44, 95, 184)
HSLhsl(218, 61%, 45%)
HSVhsv(218, 76%, 72%)
CMYKcmyk(76.1%, 48.4%, 0%, 27.8%)
CIE-LABlab(41.50, 14.82, -51.97)
CIE-LCHlch(41.50, 54.05, 285.92°)
OKLaboklab(50.05% -0.0246 -0.1493)
OKLCHoklch(50.05% 0.151 260.7)
XYZxyz(13.7795, 12.1790, 46.9627)
Luminance0.1218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5FB8 #B8852C
analogous
#2CA5B8 #2C5FB8 #3F2CB8
triadic
#2C5FB8 #B82C5F #5FB82C
tetradic
#2C5FB8 #B82CA5 #B8852C #2CB83F
square
#2C5FB8 #B82CA5 #B8852C #2CB83F
split-complementary
#2C5FB8 #B83F2C #A5B82C
monochromatic
#142C55 #204587 #2C5FB8 #4D7ED4 #7EA2E0

Accessibility & contrast

On white

6.11
#2C5FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#2C5FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5FB8
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5FB8#FFFFFF#000000##FFFFFF
##2C5FB81.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D69BB
Deuteranopia (green-blind)
#005CB6
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2c5fb8;
/* rgb */ color: rgb(44, 95, 184);
/* oklch */ color: oklch(50.0% 0.151 260.7);
Tailwind
colors: {
  custom: {
    50: '#798bce',
    500: '#2c5fb8',
    950: '#000000',
  },
}
SCSS
$custom: #2c5fb8;
$custom-light: #798bce;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5fb8",
  "rgb": {
    "r": 44,
    "g": 95,
    "b": 184
  },
  "hsl": {
    "h": 218.143,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.5005,
    "c": 0.15129,
    "h": 260.7
  },
  "luminance": 0.12181
}

Semantic roles & 50–950 ramp

primary
#2C5FB8
secondary
#C9AB77
accent
#AA43E5
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C14
muted
#7C7D82

Preview Lab

Preview with #2C5FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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