#2C4F82#2C4F82

#2C4F82 is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.7% C 0.094 H 257.8°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#2C4F82
RGBrgb(44, 79, 130)
HSLhsl(216, 49%, 34%)
HSVhsv(216, 66%, 51%)
CMYKcmyk(66.2%, 39.2%, 0%, 49%)
CIE-LABlab(33.43, 4.79, -32.48)
CIE-LCHlch(33.43, 32.83, 278.39°)
OKLaboklab(42.74% -0.0199 -0.0923)
OKLCHoklch(42.74% 0.094 257.8)
XYZxyz(7.8625, 7.7384, 22.1941)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4F82 #825F2C
analogous
#2C7A82 #2C4F82 #342C82
triadic
#2C4F82 #822C4F #4F822C
tetradic
#2C4F82 #822C7A #825F2C #2C8234
square
#2C4F82 #822C7A #825F2C #2C8234
split-complementary
#2C4F82 #82342C #7A822C
monochromatic
#0D1727 #1D3354 #2C4F82 #3B6BB0 #5F8AC9

Accessibility & contrast

On white

8.24
#2C4F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C4F82
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4F82#FFFFFF#000000##FFFFFF
##2C4F821.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395384
Deuteranopia (green-blind)
#2C4B81
Tritanopia (blue-blind)
#005B62
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2c4f82;
/* rgb */ color: rgb(44, 79, 130);
/* oklch */ color: oklch(42.7% 0.094 257.8);
Tailwind
colors: {
  custom: {
    50: '#6e80a6',
    500: '#2c4f82',
    950: '#000000',
  },
}
SCSS
$custom: #2c4f82;
$custom-light: #6e80a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4f82",
  "rgb": {
    "r": 44,
    "g": 79,
    "b": 130
  },
  "hsl": {
    "h": 215.581,
    "s": 49.425,
    "l": 34.118
  },
  "oklch": {
    "l": 0.42739,
    "c": 0.0944,
    "h": 257.8
  },
  "luminance": 0.07739
}

Semantic roles & 50–950 ramp

primary
#2C4F82
secondary
#AF8D5B
accent
#A14FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2C4F82

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

Preview Lab → · Contrast checker → · Palette generator →

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