#2C4E81#2C4E81

#2C4E81 is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.4% C 0.094 H 258.3°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#2C4E81
RGBrgb(44, 78, 129)
HSLhsl(216, 49%, 34%)
HSVhsv(216, 66%, 51%)
CMYKcmyk(65.9%, 39.5%, 0%, 49.4%)
CIE-LABlab(33.07, 5.08, -32.44)
CIE-LCHlch(33.07, 32.83, 278.89°)
OKLaboklab(42.44% -0.0191 -0.0922)
OKLCHoklch(42.44% 0.094 258.3)
XYZxyz(7.7241, 7.5685, 21.8184)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4E81 #815F2C
analogous
#2C7981 #2C4E81 #352C81
triadic
#2C4E81 #812C4E #4E812C
tetradic
#2C4E81 #812C79 #815F2C #2C8135
square
#2C4E81 #812C79 #815F2C #2C8135
split-complementary
#2C4E81 #81352C #79812C
monochromatic
#0D1726 #1C3253 #2C4E81 #3C6AAF #5F89C8

Accessibility & contrast

On white

8.35
#2C4E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2C4E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4E81
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4E81#FFFFFF#000000##FFFFFF
##2C4E811.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385283
Deuteranopia (green-blind)
#2C4A80
Tritanopia (blue-blind)
#005A61
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2c4e81;
/* rgb */ color: rgb(44, 78, 129);
/* oklch */ color: oklch(42.4% 0.094 258.3);
Tailwind
colors: {
  custom: {
    50: '#6e7fa6',
    500: '#2c4e81',
    950: '#000000',
  },
}
SCSS
$custom: #2c4e81;
$custom-light: #6e7fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4e81",
  "rgb": {
    "r": 44,
    "g": 78,
    "b": 129
  },
  "hsl": {
    "h": 216,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42437,
    "c": 0.09412,
    "h": 258.3
  },
  "luminance": 0.07569
}

Semantic roles & 50–950 ramp

primary
#2C4E81
secondary
#AF8D5A
accent
#A24FD9
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2C4E81

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

Preview Lab → · Contrast checker → · Palette generator →

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