#2C5186#2C5186

#2C5186 is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.5% C 0.098 H 257.5°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#2C5186
RGBrgb(44, 81, 134)
HSLhsl(215, 51%, 35%)
HSVhsv(215, 67%, 53%)
CMYKcmyk(67.2%, 39.6%, 0%, 47.5%)
CIE-LABlab(34.27, 4.97, -33.60)
CIE-LCHlch(34.27, 33.97, 278.42°)
OKLaboklab(43.47% -0.0211 -0.0955)
OKLCHoklch(43.47% 0.098 257.5)
XYZxyz(8.2827, 8.1408, 23.6845)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5186 #86612C
analogous
#2C7E86 #2C5186 #342C86
triadic
#2C5186 #862C51 #51862C
tetradic
#2C5186 #862C7E #86612C #2C8634
square
#2C5186 #862C7E #86612C #2C8634
split-complementary
#2C5186 #86342C #7E862C
monochromatic
#0E192A #1D3558 #2C5186 #3B6DB4 #618DCB

Accessibility & contrast

On white

7.99
#2C5186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2C5186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5186
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5186#FFFFFF#000000##FFFFFF
##2C51861.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395588
Deuteranopia (green-blind)
#2D4D85
Tritanopia (blue-blind)
#005D65
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2c5186;
/* rgb */ color: rgb(44, 81, 134);
/* oklch */ color: oklch(43.5% 0.098 257.5);
Tailwind
colors: {
  custom: {
    50: '#6f81a9',
    500: '#2c5186',
    950: '#000000',
  },
}
SCSS
$custom: #2c5186;
$custom-light: #6f81a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5186",
  "rgb": {
    "r": 44,
    "g": 81,
    "b": 134
  },
  "hsl": {
    "h": 215.333,
    "s": 50.562,
    "l": 34.902
  },
  "oklch": {
    "l": 0.43469,
    "c": 0.09784,
    "h": 257.5
  },
  "luminance": 0.08142
}

Semantic roles & 50–950 ramp

primary
#2C5186
secondary
#B18E5C
accent
#A04EDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2C5186

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

Preview Lab → · Contrast checker → · Palette generator →

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