#2C5B9D#2C5B9D

#2C5B9D is a mid, moderate blue. Relative luminance 0.105; OKLCH L 47.3% C 0.119 H 257.4°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#2C5B9D
RGBrgb(44, 91, 157)
HSLhsl(215, 56%, 39%)
HSVhsv(215, 72%, 62%)
CMYKcmyk(72%, 42%, 0%, 38.4%)
CIE-LABlab(38.64, 7.13, -40.59)
CIE-LCHlch(38.64, 41.21, 279.97°)
OKLaboklab(47.3% -0.026 -0.1159)
OKLCHoklch(47.3% 0.119 257.4)
XYZxyz(10.8634, 10.4508, 33.3364)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5B9D #9D6E2C
analogous
#2C949D #2C5B9D #352C9D
triadic
#2C5B9D #9D2C5B #5B9D2C
tetradic
#2C5B9D #9D2C94 #9D6E2C #2C9D35
square
#2C5B9D #9D2C94 #9D6E2C #2C9D35
split-complementary
#2C5B9D #9D352C #949D2C
monochromatic
#11243D #1F3F6D #2C5B9D #3D77C9 #6D99D6

Accessibility & contrast

On white

6.80
#2C5B9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2C5B9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5B9D
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5B9D#FFFFFF#000000##FFFFFF
##2C5B9D1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C61A0
Deuteranopia (green-blind)
#29569C
Tritanopia (blue-blind)
#006A74
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2c5b9d;
/* rgb */ color: rgb(44, 91, 157);
/* oklch */ color: oklch(47.3% 0.119 257.4);
Tailwind
colors: {
  custom: {
    50: '#7388ba',
    500: '#2c5b9d',
    950: '#000000',
  },
}
SCSS
$custom: #2c5b9d;
$custom-light: #7388ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5b9d",
  "rgb": {
    "r": 44,
    "g": 91,
    "b": 157
  },
  "hsl": {
    "h": 215.044,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.47297,
    "c": 0.11877,
    "h": 257.4
  },
  "luminance": 0.10452
}

Semantic roles & 50–950 ramp

primary
#2C5B9D
secondary
#BD9A68
accent
#A148E0
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2C5B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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