#2C5BB7#2C5BB7

#2C5BB7 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.1% C 0.155 H 262.0°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#2C5BB7
RGBrgb(44, 91, 183)
HSLhsl(220, 61%, 45%)
HSVhsv(220, 76%, 72%)
CMYKcmyk(76%, 50.3%, 0%, 28.2%)
CIE-LABlab(40.30, 17.05, -53.32)
CIE-LCHlch(40.30, 55.98, 287.73°)
OKLaboklab(49.11% -0.0214 -0.1533)
OKLCHoklch(49.11% 0.155 262)
XYZxyz(13.3240, 11.4350, 46.2955)
Luminance0.1144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5BB7 #B7882C
analogous
#2CA1B7 #2C5BB7 #432CB7
triadic
#2C5BB7 #B72C5B #5BB72C
tetradic
#2C5BB7 #B72CA1 #B7882C #2CB743
square
#2C5BB7 #B72CA1 #B7882C #2CB743
split-complementary
#2C5BB7 #B7432C #A1B72C
monochromatic
#142A54 #204286 #2C5BB7 #4C7AD4 #7E9FE0

Accessibility & contrast

On white

6.39
#2C5BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#2C5BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5BB7
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5BB7#FFFFFF#000000##FFFFFF
##2C5BB71.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2366BA
Deuteranopia (green-blind)
#0059B5
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2c5bb7;
/* rgb */ color: rgb(44, 91, 183);
/* oklch */ color: oklch(49.1% 0.155 262.0);
Tailwind
colors: {
  custom: {
    50: '#7988cd',
    500: '#2c5bb7',
    950: '#000000',
  },
}
SCSS
$custom: #2c5bb7;
$custom-light: #7988cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5bb7",
  "rgb": {
    "r": 44,
    "g": 91,
    "b": 183
  },
  "hsl": {
    "h": 219.712,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49113,
    "c": 0.1548,
    "h": 262
  },
  "luminance": 0.11437
}

Semantic roles & 50–950 ramp

primary
#2C5BB7
secondary
#C8AD76
accent
#AE43E4
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2C5BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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