#2C5188#2C5188

#2C5188 is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.6% C 0.101 H 258.2°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#2C5188
RGBrgb(44, 81, 136)
HSLhsl(216, 51%, 35%)
HSVhsv(216, 68%, 53%)
CMYKcmyk(67.6%, 40.4%, 0%, 46.7%)
CIE-LABlab(34.39, 5.72, -34.64)
CIE-LCHlch(34.39, 35.11, 279.38°)
OKLaboklab(43.6% -0.0206 -0.0986)
OKLCHoklch(43.6% 0.101 258.2)
XYZxyz(8.4235, 8.1971, 24.4261)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5188 #88632C
analogous
#2C7F88 #2C5188 #352C88
triadic
#2C5188 #882C51 #51882C
tetradic
#2C5188 #882C7F #88632C #2C8835
square
#2C5188 #882C7F #88632C #2C8835
split-complementary
#2C5188 #88352C #7F882C
monochromatic
#0E1A2C #1D355A #2C5188 #3B6DB6 #628DCC

Accessibility & contrast

On white

7.96
#2C5188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2C5188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5188
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5188#FFFFFF#000000##FFFFFF
##2C51881.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38568A
Deuteranopia (green-blind)
#2B4D87
Tritanopia (blue-blind)
#005E66
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2c5188;
/* rgb */ color: rgb(44, 81, 136);
/* oklch */ color: oklch(43.6% 0.101 258.2);
Tailwind
colors: {
  custom: {
    50: '#6f81ab',
    500: '#2c5188',
    950: '#000000',
  },
}
SCSS
$custom: #2c5188;
$custom-light: #6f81ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5188",
  "rgb": {
    "r": 44,
    "g": 81,
    "b": 136
  },
  "hsl": {
    "h": 215.87,
    "s": 51.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.43597,
    "c": 0.10073,
    "h": 258.2
  },
  "luminance": 0.08198
}

Semantic roles & 50–950 ramp

primary
#2C5188
secondary
#B3905D
accent
#A24DDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2C5188

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

Preview Lab → · Contrast checker → · Palette generator →

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