#2C4E87#2C4E87

#2C4E87 is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.8% C 0.103 H 260.1°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#2C4E87
RGBrgb(44, 78, 135)
HSLhsl(218, 51%, 35%)
HSVhsv(218, 67%, 53%)
CMYKcmyk(67.4%, 42.2%, 0%, 47.1%)
CIE-LABlab(33.42, 7.33, -35.57)
CIE-LCHlch(33.42, 36.32, 281.64°)
OKLaboklab(42.83% -0.0176 -0.1014)
OKLCHoklch(42.83% 0.103 260.1)
XYZxyz(8.1347, 7.7327, 23.9808)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4E87 #87652C
analogous
#2C7C87 #2C4E87 #372C87
triadic
#2C4E87 #872C4E #4E872C
tetradic
#2C4E87 #872C7C #87652C #2C8737
square
#2C4E87 #872C7C #87652C #2C8737
split-complementary
#2C4E87 #87372C #7C872C
monochromatic
#0E192B #1D3359 #2C4E87 #3B69B5 #6289CC

Accessibility & contrast

On white

8.25
#2C4E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2C4E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4E87
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4E87#FFFFFF#000000##FFFFFF
##2C4E871.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345389
Deuteranopia (green-blind)
#264B86
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2c4e87;
/* rgb */ color: rgb(44, 78, 135);
/* oklch */ color: oklch(42.8% 0.103 260.1);
Tailwind
colors: {
  custom: {
    50: '#6f7faa',
    500: '#2c4e87',
    950: '#000000',
  },
}
SCSS
$custom: #2c4e87;
$custom-light: #6f7faa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4e87",
  "rgb": {
    "r": 44,
    "g": 78,
    "b": 135
  },
  "hsl": {
    "h": 217.582,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.42825,
    "c": 0.10289,
    "h": 260.1
  },
  "luminance": 0.07734
}

Semantic roles & 50–950 ramp

primary
#2C4E87
secondary
#B2925D
accent
#A64DDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2C4E87

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

Preview Lab → · Contrast checker → · Palette generator →

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