#2C5288#2C5288

#2C5288 is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.8% C 0.100 H 257.4°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#2C5288
RGBrgb(44, 82, 136)
HSLhsl(215, 51%, 35%)
HSVhsv(215, 68%, 53%)
CMYKcmyk(67.6%, 39.7%, 0%, 46.7%)
CIE-LABlab(34.69, 5.07, -34.16)
CIE-LCHlch(34.69, 34.53, 278.44°)
OKLaboklab(43.83% -0.0217 -0.0972)
OKLCHoklch(43.83% 0.1 257.4)
XYZxyz(8.4983, 8.3468, 24.4510)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5288 #88622C
analogous
#2C8088 #2C5288 #342C88
triadic
#2C5288 #882C52 #52882C
tetradic
#2C5288 #882C80 #88622C #2C8834
square
#2C5288 #882C80 #88622C #2C8834
split-complementary
#2C5288 #88342C #80882C
monochromatic
#0E1A2C #1D365A #2C5288 #3B6EB6 #628ECC

Accessibility & contrast

On white

7.87
#2C5288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2C5288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5288
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5288#FFFFFF#000000##FFFFFF
##2C52881.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A568A
Deuteranopia (green-blind)
#2D4E87
Tritanopia (blue-blind)
#005E66
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2c5288;
/* rgb */ color: rgb(44, 82, 136);
/* oklch */ color: oklch(43.8% 0.100 257.4);
Tailwind
colors: {
  custom: {
    50: '#6f82ab',
    500: '#2c5288',
    950: '#000000',
  },
}
SCSS
$custom: #2c5288;
$custom-light: #6f82ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5288",
  "rgb": {
    "r": 44,
    "g": 82,
    "b": 136
  },
  "hsl": {
    "h": 215.217,
    "s": 51.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.43834,
    "c": 0.09956,
    "h": 257.4
  },
  "luminance": 0.08348
}

Semantic roles & 50–950 ramp

primary
#2C5288
secondary
#B38F5D
accent
#A04DDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2C5288

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

Preview Lab → · Contrast checker → · Palette generator →

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