#2C4E7E#2C4E7E

#2C4E7E is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.2% C 0.090 H 257.2°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#2C4E7E
RGBrgb(44, 78, 126)
HSLhsl(215, 48%, 33%)
HSVhsv(215, 65%, 49%)
CMYKcmyk(65.1%, 38.1%, 0%, 50.6%)
CIE-LABlab(32.90, 3.96, -30.85)
CIE-LCHlch(32.90, 31.10, 277.31°)
OKLaboklab(42.25% -0.0198 -0.0875)
OKLCHoklch(42.25% 0.09 257.2)
XYZxyz(7.5276, 7.4899, 20.7836)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4E7E #7E5C2C
analogous
#2C777E #2C4E7E #332C7E
triadic
#2C4E7E #7E2C4E #4E7E2C
tetradic
#2C4E7E #7E2C77 #7E5C2C #2C7E33
square
#2C4E7E #7E2C77 #7E5C2C #2C7E33
split-complementary
#2C4E7E #7E332C #777E2C
monochromatic
#0C1623 #1C3251 #2C4E7E #3C6AAB #5E89C7

Accessibility & contrast

On white

8.41
#2C4E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C4E7E
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4E7E#FFFFFF#000000##FFFFFF
##2C4E7E1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c4e7e;
/* rgb */ color: rgb(44, 78, 126);
/* oklch */ color: oklch(42.2% 0.090 257.2);
Tailwind
colors: {
  custom: {
    50: '#6e7fa3',
    500: '#2c4e7e',
    950: '#000000',
  },
}
SCSS
$custom: #2c4e7e;
$custom-light: #6e7fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4e7e",
  "rgb": {
    "r": 44,
    "g": 78,
    "b": 126
  },
  "hsl": {
    "h": 215.122,
    "s": 48.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.42249,
    "c": 0.08975,
    "h": 257.2
  },
  "luminance": 0.07491
}

Semantic roles & 50–950 ramp

primary
#2C4E7E
secondary
#AD8A59
accent
#9F50D8
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2C4E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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