#2C4F87#2C4F87

#2C4F87 is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.1% C 0.102 H 259.4°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#2C4F87
RGBrgb(44, 79, 135)
HSLhsl(217, 51%, 35%)
HSVhsv(217, 67%, 53%)
CMYKcmyk(67.4%, 41.5%, 0%, 47.1%)
CIE-LABlab(33.72, 6.67, -35.09)
CIE-LCHlch(33.72, 35.72, 280.76°)
OKLaboklab(43.06% -0.0187 -0.0999)
OKLCHoklch(43.06% 0.102 259.4)
XYZxyz(8.2063, 7.8759, 24.0047)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4F87 #87642C
analogous
#2C7C87 #2C4F87 #362C87
triadic
#2C4F87 #872C4F #4F872C
tetradic
#2C4F87 #872C7C #87642C #2C8736
square
#2C4F87 #872C7C #87642C #2C8736
split-complementary
#2C4F87 #87362C #7C872C
monochromatic
#0E192B #1D3459 #2C4F87 #3B6AB5 #628ACC

Accessibility & contrast

On white

8.15
#2C4F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2C4F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4F87
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4F87#FFFFFF#000000##FFFFFF
##2C4F871.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365489
Deuteranopia (green-blind)
#284B86
Tritanopia (blue-blind)
#005C64
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2c4f87;
/* rgb */ color: rgb(44, 79, 135);
/* oklch */ color: oklch(43.1% 0.102 259.4);
Tailwind
colors: {
  custom: {
    50: '#6f7faa',
    500: '#2c4f87',
    950: '#000000',
  },
}
SCSS
$custom: #2c4f87;
$custom-light: #6f7faa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4f87",
  "rgb": {
    "r": 44,
    "g": 79,
    "b": 135
  },
  "hsl": {
    "h": 216.923,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4306,
    "c": 0.10167,
    "h": 259.4
  },
  "luminance": 0.07877
}

Semantic roles & 50–950 ramp

primary
#2C4F87
secondary
#B2915D
accent
#A44DDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2C4F87

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

Preview Lab → · Contrast checker → · Palette generator →

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