#2C4F8F#2C4F8F

#2C4F8F is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.6% C 0.113 H 261.4°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#2C4F8F
RGBrgb(44, 79, 143)
HSLhsl(219, 53%, 37%)
HSVhsv(219, 69%, 56%)
CMYKcmyk(69.2%, 44.8%, 0%, 43.9%)
CIE-LABlab(34.21, 9.69, -39.21)
CIE-LCHlch(34.21, 40.39, 283.89°)
OKLaboklab(43.6% -0.017 -0.112)
OKLCHoklch(43.6% 0.113 261.4)
XYZxyz(8.7909, 8.1097, 27.0833)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4F8F #8F6C2C
analogous
#2C818F #2C4F8F #3B2C8F
triadic
#2C4F8F #8F2C4F #4F8F2C
tetradic
#2C4F8F #8F2C81 #8F6C2C #2C8F3B
square
#2C4F8F #8F2C81 #8F6C2C #2C8F3B
split-complementary
#2C4F8F #8F3B2C #818F2C
monochromatic
#0F1B31 #1E3560 #2C4F8F #3A69BE #668BD0

Accessibility & contrast

On white

8.01
#2C4F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2C4F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4F8F
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4F8F#FFFFFF#000000##FFFFFF
##2C4F8F1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305591
Deuteranopia (green-blind)
#1F4C8E
Tritanopia (blue-blind)
#005E68
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2c4f8f;
/* rgb */ color: rgb(44, 79, 143);
/* oklch */ color: oklch(43.6% 0.113 261.4);
Tailwind
colors: {
  custom: {
    50: '#717fb0',
    500: '#2c4f8f',
    950: '#000000',
  },
}
SCSS
$custom: #2c4f8f;
$custom-light: #717fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4f8f",
  "rgb": {
    "r": 44,
    "g": 79,
    "b": 143
  },
  "hsl": {
    "h": 218.788,
    "s": 52.941,
    "l": 36.667
  },
  "oklch": {
    "l": 0.43595,
    "c": 0.11331,
    "h": 261.4
  },
  "luminance": 0.08111
}

Semantic roles & 50–950 ramp

primary
#2C4F8F
secondary
#B69861
accent
#A94BDC
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2C4F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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