#2C4E7F#2C4E7F

#2C4E7F is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.3% C 0.091 H 257.6°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#2C4E7F
RGBrgb(44, 78, 127)
HSLhsl(215, 49%, 34%)
HSVhsv(215, 65%, 50%)
CMYKcmyk(65.4%, 38.6%, 0%, 50.2%)
CIE-LABlab(32.95, 4.33, -31.38)
CIE-LCHlch(32.95, 31.68, 277.86°)
OKLaboklab(42.31% -0.0196 -0.0891)
OKLCHoklch(42.31% 0.091 257.6)
XYZxyz(7.5925, 7.5158, 21.1251)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4E7F #7F5D2C
analogous
#2C777F #2C4E7F #332C7F
triadic
#2C4E7F #7F2C4E #4E7F2C
tetradic
#2C4E7F #7F2C77 #7F5D2C #2C7F33
square
#2C4E7F #7F2C77 #7F5D2C #2C7F33
split-complementary
#2C4E7F #7F332C #777F2C
monochromatic
#0D1624 #1C3252 #2C4E7F #3C6AAC #5E89C7

Accessibility & contrast

On white

8.39
#2C4E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2C4E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4E7F
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4E7F#FFFFFF#000000##FFFFFF
##2C4E7F1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395281
Deuteranopia (green-blind)
#2D4A7E
Tritanopia (blue-blind)
#005960
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2c4e7f;
/* rgb */ color: rgb(44, 78, 127);
/* oklch */ color: oklch(42.3% 0.091 257.6);
Tailwind
colors: {
  custom: {
    50: '#6e7fa4',
    500: '#2c4e7f',
    950: '#000000',
  },
}
SCSS
$custom: #2c4e7f;
$custom-light: #6e7fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4e7f",
  "rgb": {
    "r": 44,
    "g": 78,
    "b": 127
  },
  "hsl": {
    "h": 215.422,
    "s": 48.538,
    "l": 33.529
  },
  "oklch": {
    "l": 0.42311,
    "c": 0.0912,
    "h": 257.6
  },
  "luminance": 0.07517
}

Semantic roles & 50–950 ramp

primary
#2C4E7F
secondary
#AD8B59
accent
#A050D8
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2C4E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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