#2C5BB9#2C5BB9

#2C5BB9 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.3% C 0.158 H 262.3°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#2C5BB9
RGBrgb(44, 91, 185)
HSLhsl(220, 62%, 45%)
HSVhsv(220, 76%, 73%)
CMYKcmyk(76.2%, 50.8%, 0%, 27.5%)
CIE-LABlab(40.44, 17.81, -54.27)
CIE-LCHlch(40.44, 57.11, 288.17°)
OKLaboklab(49.26% -0.0212 -0.1561)
OKLCHoklch(49.26% 0.158 262.3)
XYZxyz(13.5336, 11.5189, 47.3996)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5BB9 #B98A2C
analogous
#2CA2B9 #2C5BB9 #442CB9
triadic
#2C5BB9 #B92C5B #5BB92C
tetradic
#2C5BB9 #B92CA2 #B98A2C #2CB944
square
#2C5BB9 #B92CA2 #B98A2C #2CB944
split-complementary
#2C5BB9 #B9442C #A2B92C
monochromatic
#142A56 #204388 #2C5BB9 #4D7BD5 #7F9FE1

Accessibility & contrast

On white

6.36
#2C5BB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#2C5BB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5BB9
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5BB9#FFFFFF#000000##FFFFFF
##2C5BB91.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2066BC
Deuteranopia (green-blind)
#0059B7
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2c5bb9;
/* rgb */ color: rgb(44, 91, 185);
/* oklch */ color: oklch(49.3% 0.158 262.3);
Tailwind
colors: {
  custom: {
    50: '#7988cf',
    500: '#2c5bb9',
    950: '#000000',
  },
}
SCSS
$custom: #2c5bb9;
$custom-light: #7988cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5bb9",
  "rgb": {
    "r": 44,
    "g": 91,
    "b": 185
  },
  "hsl": {
    "h": 220,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49262,
    "c": 0.15753,
    "h": 262.3
  },
  "luminance": 0.1152
}

Semantic roles & 50–950 ramp

primary
#2C5BB9
secondary
#C9AE78
accent
#AF43E5
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2C5BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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