#2C5A9D#2C5A9D

#2C5A9D is a mid, moderate blue. Relative luminance 0.103; OKLCH L 47.1% C 0.120 H 258.0°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#2C5A9D
RGBrgb(44, 90, 157)
HSLhsl(216, 56%, 39%)
HSVhsv(216, 72%, 62%)
CMYKcmyk(72%, 42.7%, 0%, 38.4%)
CIE-LABlab(38.34, 7.78, -41.07)
CIE-LCHlch(38.34, 41.80, 280.73°)
OKLaboklab(47.07% -0.025 -0.1173)
OKLCHoklch(47.07% 0.12 258)
XYZxyz(10.7785, 10.2810, 33.3081)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5A9D #9D6F2C
analogous
#2C939D #2C5A9D #362C9D
triadic
#2C5A9D #9D2C5A #5A9D2C
tetradic
#2C5A9D #9D2C93 #9D6F2C #2C9D36
square
#2C5A9D #9D2C93 #9D6F2C #2C9D36
split-complementary
#2C5A9D #9D362C #939D2C
monochromatic
#11233D #1F3F6D #2C5A9D #3D76C9 #6D98D6

Accessibility & contrast

On white

6.87
#2C5A9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2C5A9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5A9D
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5A9D#FFFFFF#000000##FFFFFF
##2C5A9D1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A60A0
Deuteranopia (green-blind)
#27559C
Tritanopia (blue-blind)
#006A74
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2c5a9d;
/* rgb */ color: rgb(44, 90, 157);
/* oklch */ color: oklch(47.1% 0.120 258.0);
Tailwind
colors: {
  custom: {
    50: '#7388ba',
    500: '#2c5a9d',
    950: '#000000',
  },
}
SCSS
$custom: #2c5a9d;
$custom-light: #7388ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5a9d",
  "rgb": {
    "r": 44,
    "g": 90,
    "b": 157
  },
  "hsl": {
    "h": 215.575,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.47067,
    "c": 0.11994,
    "h": 258
  },
  "luminance": 0.10282
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C5A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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