#2C5189#2C5189

#2C5189 is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.7% C 0.102 H 258.5°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#2C5189
RGBrgb(44, 81, 137)
HSLhsl(216, 51%, 35%)
HSVhsv(216, 68%, 54%)
CMYKcmyk(67.9%, 40.9%, 0%, 46.3%)
CIE-LABlab(34.45, 6.10, -35.16)
CIE-LCHlch(34.45, 35.69, 279.84°)
OKLaboklab(43.66% -0.0204 -0.1001)
OKLCHoklch(43.66% 0.102 258.5)
XYZxyz(8.4949, 8.2256, 24.8021)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5189 #89642C
analogous
#2C7F89 #2C5189 #352C89
triadic
#2C5189 #892C51 #51892C
tetradic
#2C5189 #892C7F #89642C #2C8935
square
#2C5189 #892C7F #89642C #2C8935
split-complementary
#2C5189 #89352C #7F892C
monochromatic
#0E1A2C #1D365B #2C5189 #3B6CB7 #638DCD

Accessibility & contrast

On white

7.94
#2C5189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#2C5189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5189
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5189#FFFFFF#000000##FFFFFF
##2C51891.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c5189;
/* rgb */ color: rgb(44, 81, 137);
/* oklch */ color: oklch(43.7% 0.102 258.5);
Tailwind
colors: {
  custom: {
    50: '#7081ac',
    500: '#2c5189',
    950: '#000000',
  },
}
SCSS
$custom: #2c5189;
$custom-light: #7081ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5189",
  "rgb": {
    "r": 44,
    "g": 81,
    "b": 137
  },
  "hsl": {
    "h": 216.129,
    "s": 51.381,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43661,
    "c": 0.10217,
    "h": 258.5
  },
  "luminance": 0.08226
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C5189

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

Preview Lab → · Contrast checker → · Palette generator →

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