#2C5CB7#2C5CB7

#2C5CB7 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.3% C 0.154 H 261.7°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#2C5CB7
RGBrgb(44, 92, 183)
HSLhsl(219, 61%, 45%)
HSVhsv(219, 76%, 72%)
CMYKcmyk(76%, 49.7%, 0%, 28.2%)
CIE-LABlab(40.58, 16.40, -52.86)
CIE-LCHlch(40.58, 55.35, 287.23°)
OKLaboklab(49.33% -0.0222 -0.152)
OKLCHoklch(49.33% 0.154 261.7)
XYZxyz(13.4100, 11.6072, 46.3242)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5CB7 #B7872C
analogous
#2CA1B7 #2C5CB7 #422CB7
triadic
#2C5CB7 #B72C5C #5CB72C
tetradic
#2C5CB7 #B72CA1 #B7872C #2CB742
square
#2C5CB7 #B72CA1 #B7872C #2CB742
split-complementary
#2C5CB7 #B7422C #A1B72C
monochromatic
#142A54 #204386 #2C5CB7 #4C7BD4 #7E9FE0

Accessibility & contrast

On white

6.32
#2C5CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#2C5CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5CB7
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5CB7#FFFFFF#000000##FFFFFF
##2C5CB71.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2666BA
Deuteranopia (green-blind)
#005AB5
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2c5cb7;
/* rgb */ color: rgb(44, 92, 183);
/* oklch */ color: oklch(49.3% 0.154 261.7);
Tailwind
colors: {
  custom: {
    50: '#7989cd',
    500: '#2c5cb7',
    950: '#000000',
  },
}
SCSS
$custom: #2c5cb7;
$custom-light: #7989cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5cb7",
  "rgb": {
    "r": 44,
    "g": 92,
    "b": 183
  },
  "hsl": {
    "h": 219.281,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49328,
    "c": 0.15358,
    "h": 261.7
  },
  "luminance": 0.11609
}

Semantic roles & 50–950 ramp

primary
#2C5CB7
secondary
#C8AC76
accent
#AD43E4
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2C5CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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