#2C5CBB#2C5CBB

#2C5CBB is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.6% C 0.159 H 262.1°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#2C5CBB
RGBrgb(44, 92, 187)
HSLhsl(220, 62%, 45%)
HSVhsv(220, 76%, 73%)
CMYKcmyk(76.5%, 50.8%, 0%, 26.7%)
CIE-LABlab(40.86, 17.92, -54.76)
CIE-LCHlch(40.86, 57.62, 288.12°)
OKLaboklab(49.62% -0.0217 -0.1575)
OKLCHoklch(49.62% 0.159 262.1)
XYZxyz(13.8323, 11.7761, 48.5481)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5CBB #BB8B2C
analogous
#2CA4BB #2C5CBB #432CBB
triadic
#2C5CBB #BB2C5C #5CBB2C
tetradic
#2C5CBB #BB2CA4 #BB8B2C #2CBB43
square
#2C5CBB #BB2CA4 #BB8B2C #2CBB43
split-complementary
#2C5CBB #BB432C #A4BB2C
monochromatic
#152B58 #204489 #2C5CBB #4F7CD6 #80A1E1

Accessibility & contrast

On white

6.26
#2C5CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#2C5CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5CBB
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5CBB#FFFFFF#000000##FFFFFF
##2C5CBB1.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2067BE
Deuteranopia (green-blind)
#005AB9
Tritanopia (blue-blind)
#007383
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2c5cbb;
/* rgb */ color: rgb(44, 92, 187);
/* oklch */ color: oklch(49.6% 0.159 262.1);
Tailwind
colors: {
  custom: {
    50: '#7a89d0',
    500: '#2c5cbb',
    950: '#000000',
  },
}
SCSS
$custom: #2c5cbb;
$custom-light: #7a89d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5cbb",
  "rgb": {
    "r": 44,
    "g": 92,
    "b": 187
  },
  "hsl": {
    "h": 219.86,
    "s": 61.905,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49624,
    "c": 0.15903,
    "h": 262.1
  },
  "luminance": 0.11778
}

Semantic roles & 50–950 ramp

primary
#2C5CBB
secondary
#CAAF79
accent
#AF43E5
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2C5CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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