#2C4E8C#2C4E8C

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

Color values

HEX#2C4E8C
RGBrgb(44, 78, 140)
HSLhsl(219, 52%, 36%)
HSVhsv(219, 69%, 55%)
CMYKcmyk(68.6%, 44.3%, 0%, 45.1%)
CIE-LABlab(33.73, 9.22, -38.15)
CIE-LCHlch(33.73, 39.25, 283.58°)
OKLaboklab(43.16% -0.0166 -0.1089)
OKLCHoklch(43.16% 0.11 261.4)
XYZxyz(8.4950, 7.8769, 25.8786)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4E8C #8C6A2C
analogous
#2C7E8C #2C4E8C #3A2C8C
triadic
#2C4E8C #8C2C4E #4E8C2C
tetradic
#2C4E8C #8C2C7E #8C6A2C #2C8C3A
square
#2C4E8C #8C2C7E #8C6A2C #2C8C3A
split-complementary
#2C4E8C #8C3A2C #7E8C2C
monochromatic
#0F1A2F #1D345D #2C4E8C #3B68BB #648ACE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C4E8C#FFFFFF#000000##FFFFFF
##2C4E8C1.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)
#31548E
Deuteranopia (green-blind)
#214B8B
Tritanopia (blue-blind)
#005C66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2c4e8c;
/* rgb */ color: rgb(44, 78, 140);
/* oklch */ color: oklch(43.2% 0.110 261.4);
Tailwind
colors: {
  custom: {
    50: '#707fae',
    500: '#2c4e8c',
    950: '#000000',
  },
}
SCSS
$custom: #2c4e8c;
$custom-light: #707fae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4e8c",
  "rgb": {
    "r": 44,
    "g": 78,
    "b": 140
  },
  "hsl": {
    "h": 218.75,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4316,
    "c": 0.11019,
    "h": 261.4
  },
  "luminance": 0.07878
}

Semantic roles & 50–950 ramp

primary
#2C4E8C
secondary
#B5965F
accent
#A94CDC
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2C4E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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