#2C5FB7#2C5FB7

#2C5FB7 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.0% C 0.150 H 260.5°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#2C5FB7
RGBrgb(44, 95, 183)
HSLhsl(218, 61%, 45%)
HSVhsv(218, 76%, 72%)
CMYKcmyk(76%, 48.1%, 0%, 28.2%)
CIE-LABlab(41.43, 14.44, -51.49)
CIE-LCHlch(41.43, 53.48, 285.67°)
OKLaboklab(49.98% -0.0247 -0.1479)
OKLCHoklch(49.98% 0.15 260.5)
XYZxyz(13.6751, 12.1372, 46.4126)
Luminance0.1214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5FB7 #B7842C
analogous
#2CA4B7 #2C5FB7 #3F2CB7
triadic
#2C5FB7 #B72C5F #5FB72C
tetradic
#2C5FB7 #B72CA4 #B7842C #2CB73F
square
#2C5FB7 #B72CA4 #B7842C #2CB73F
split-complementary
#2C5FB7 #B73F2C #A4B72C
monochromatic
#142C54 #204586 #2C5FB7 #4C7ED4 #7EA2E0

Accessibility & contrast

On white

6.13
#2C5FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#2C5FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5FB7
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5FB7#FFFFFF#000000##FFFFFF
##2C5FB71.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c5fb7;
/* rgb */ color: rgb(44, 95, 183);
/* oklch */ color: oklch(50.0% 0.150 260.5);
Tailwind
colors: {
  custom: {
    50: '#798bcd',
    500: '#2c5fb7',
    950: '#000000',
  },
}
SCSS
$custom: #2c5fb7;
$custom-light: #798bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5fb7",
  "rgb": {
    "r": 44,
    "g": 95,
    "b": 183
  },
  "hsl": {
    "h": 217.986,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49978,
    "c": 0.14993,
    "h": 260.5
  },
  "luminance": 0.12139
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C5FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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