#2C5FBD#2C5FBD

#2C5FBD is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.4% C 0.158 H 261.3°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#2C5FBD
RGBrgb(44, 95, 189)
HSLhsl(219, 62%, 46%)
HSVhsv(219, 77%, 74%)
CMYKcmyk(76.7%, 49.7%, 0%, 25.9%)
CIE-LABlab(41.83, 16.73, -54.35)
CIE-LCHlch(41.83, 56.87, 287.11°)
OKLaboklab(50.41% -0.0238 -0.1563)
OKLCHoklch(50.41% 0.158 261.3)
XYZxyz(14.3129, 12.3924, 49.7719)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5FBD #BD8A2C
analogous
#2CA7BD #2C5FBD #422CBD
triadic
#2C5FBD #BD2C5F #5FBD2C
tetradic
#2C5FBD #BD2CA7 #BD8A2C #2CBD42
square
#2C5FBD #BD2CA7 #BD8A2C #2CBD42
split-complementary
#2C5FBD #BD422C #A7BD2C
monochromatic
#152D5A #20468B #2C5FBD #507FD6 #82A3E2

Accessibility & contrast

On white

6.04
#2C5FBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#2C5FBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5FBD
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5FBD#FFFFFF#000000##FFFFFF
##2C5FBD1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#276AC0
Deuteranopia (green-blind)
#005CBB
Tritanopia (blue-blind)
#007685
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2c5fbd;
/* rgb */ color: rgb(44, 95, 189);
/* oklch */ color: oklch(50.4% 0.158 261.3);
Tailwind
colors: {
  custom: {
    50: '#7a8bd1',
    500: '#2c5fbd',
    950: '#000000',
  },
}
SCSS
$custom: #2c5fbd;
$custom-light: #7a8bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5fbd",
  "rgb": {
    "r": 44,
    "g": 95,
    "b": 189
  },
  "hsl": {
    "h": 218.897,
    "s": 62.232,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50413,
    "c": 0.1581,
    "h": 261.3
  },
  "luminance": 0.12394
}

Semantic roles & 50–950 ramp

primary
#2C5FBD
secondary
#CBAE7A
accent
#AC42E5
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #2C5FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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