#2C5FB1#2C5FB1

#2C5FB1 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.6% C 0.142 H 259.5°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#2C5FB1
RGBrgb(44, 95, 177)
HSLhsl(217, 60%, 43%)
HSVhsv(217, 75%, 69%)
CMYKcmyk(75.1%, 46.3%, 0%, 30.6%)
CIE-LABlab(41.05, 12.15, -48.60)
CIE-LCHlch(41.05, 50.10, 284.04°)
OKLaboklab(49.56% -0.0257 -0.1394)
OKLCHoklch(49.56% 0.142 259.5)
XYZxyz(13.0638, 11.8928, 43.1935)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5FB1 #B17E2C
analogous
#2CA1B1 #2C5FB1 #3B2CB1
triadic
#2C5FB1 #B12C5F #5FB12C
tetradic
#2C5FB1 #B12CA1 #B17E2C #2CB13B
square
#2C5FB1 #B12CA1 #B17E2C #2CB13B
split-complementary
#2C5FB1 #B13B2C #A1B12C
monochromatic
#142A4F #204580 #2C5FB1 #497DD2 #7AA0DE

Accessibility & contrast

On white

6.22
#2C5FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2C5FB1
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5FB1#FFFFFF#000000##FFFFFF
##2C5FB11.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3467B4
Deuteranopia (green-blind)
#155BAF
Tritanopia (blue-blind)
#00727F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2c5fb1;
/* rgb */ color: rgb(44, 95, 177);
/* oklch */ color: oklch(49.6% 0.142 259.5);
Tailwind
colors: {
  custom: {
    50: '#788bc9',
    500: '#2c5fb1',
    950: '#000000',
  },
}
SCSS
$custom: #2c5fb1;
$custom-light: #788bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5fb1",
  "rgb": {
    "r": 44,
    "g": 95,
    "b": 177
  },
  "hsl": {
    "h": 216.992,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.49555,
    "c": 0.14171,
    "h": 259.5
  },
  "luminance": 0.11894
}

Semantic roles & 50–950 ramp

primary
#2C5FB1
secondary
#C6A673
accent
#A644E3
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2C5FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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