#2C5087#2C5087

#2C5087 is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.3% C 0.100 H 258.6°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#2C5087
RGBrgb(44, 80, 135)
HSLhsl(216, 51%, 35%)
HSVhsv(216, 67%, 53%)
CMYKcmyk(67.4%, 40.7%, 0%, 47.1%)
CIE-LABlab(34.03, 6.01, -34.61)
CIE-LCHlch(34.03, 35.13, 279.85°)
OKLaboklab(43.3% -0.0198 -0.0985)
OKLCHoklch(43.3% 0.1 258.6)
XYZxyz(8.2790, 8.0213, 24.0289)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5087 #87632C
analogous
#2C7D87 #2C5087 #362C87
triadic
#2C5087 #872C50 #50872C
tetradic
#2C5087 #872C7D #87632C #2C8736
square
#2C5087 #872C7D #87632C #2C8736
split-complementary
#2C5087 #87362C #7D872C
monochromatic
#0E192B #1D3559 #2C5087 #3B6BB5 #628CCC

Accessibility & contrast

On white

8.06
#2C5087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2C5087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5087
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5087#FFFFFF#000000##FFFFFF
##2C50871.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375589
Deuteranopia (green-blind)
#2A4C86
Tritanopia (blue-blind)
#005D65
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2c5087;
/* rgb */ color: rgb(44, 80, 135);
/* oklch */ color: oklch(43.3% 0.100 258.6);
Tailwind
colors: {
  custom: {
    50: '#6f80aa',
    500: '#2c5087',
    950: '#000000',
  },
}
SCSS
$custom: #2c5087;
$custom-light: #6f80aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5087",
  "rgb": {
    "r": 44,
    "g": 80,
    "b": 135
  },
  "hsl": {
    "h": 216.264,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43296,
    "c": 0.10048,
    "h": 258.6
  },
  "luminance": 0.08022
}

Semantic roles & 50–950 ramp

primary
#2C5087
secondary
#B2905D
accent
#A34DDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2C5087

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

Preview Lab → · Contrast checker → · Palette generator →

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