#2C5BB5#2C5BB5

#2C5BB5 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.0% C 0.152 H 261.8°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#2C5BB5
RGBrgb(44, 91, 181)
HSLhsl(219, 61%, 44%)
HSVhsv(219, 76%, 71%)
CMYKcmyk(75.7%, 49.7%, 0%, 29%)
CIE-LABlab(40.17, 16.29, -52.36)
CIE-LCHlch(40.17, 54.84, 287.28°)
OKLaboklab(48.97% -0.0217 -0.1505)
OKLCHoklch(48.97% 0.152 261.8)
XYZxyz(13.1173, 11.3524, 45.2070)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5BB5 #B5862C
analogous
#2CA0B5 #2C5BB5 #422CB5
triadic
#2C5BB5 #B52C5B #5BB52C
tetradic
#2C5BB5 #B52CA0 #B5862C #2CB542
square
#2C5BB5 #B52CA0 #B5862C #2CB542
split-complementary
#2C5BB5 #B5422C #A0B52C
monochromatic
#142953 #204284 #2C5BB5 #4B7AD3 #7C9EDF

Accessibility & contrast

On white

6.42
#2C5BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#2C5BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5BB5
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5BB5#FFFFFF#000000##FFFFFF
##2C5BB51.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2665B8
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2c5bb5;
/* rgb */ color: rgb(44, 91, 181);
/* oklch */ color: oklch(49.0% 0.152 261.8);
Tailwind
colors: {
  custom: {
    50: '#7988cc',
    500: '#2c5bb5',
    950: '#000000',
  },
}
SCSS
$custom: #2c5bb5;
$custom-light: #7988cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5bb5",
  "rgb": {
    "r": 44,
    "g": 91,
    "b": 181
  },
  "hsl": {
    "h": 219.416,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48966,
    "c": 0.15206,
    "h": 261.8
  },
  "luminance": 0.11354
}

Semantic roles & 50–950 ramp

primary
#2C5BB5
secondary
#C8AB75
accent
#AD44E4
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2C5BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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