#2C4979#2C4979

#2C4979 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 40.7% C 0.088 H 260.0°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#2C4979
RGBrgb(44, 73, 121)
HSLhsl(217, 47%, 32%)
HSVhsv(217, 64%, 47%)
CMYKcmyk(63.6%, 39.7%, 0%, 52.5%)
CIE-LABlab(31.07, 5.41, -30.64)
CIE-LCHlch(31.07, 31.11, 280.02°)
OKLaboklab(40.73% -0.0154 -0.087)
OKLCHoklch(40.73% 0.088 260)
XYZxyz(6.8712, 6.6804, 19.0128)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4979 #795C2C
analogous
#2C6F79 #2C4979 #362C79
triadic
#2C4979 #792C49 #49792C
tetradic
#2C4979 #792C6F #795C2C #2C7936
square
#2C4979 #792C6F #795C2C #2C7936
split-complementary
#2C4979 #79362C #6F792C
monochromatic
#0B131F #1C2E4C #2C4979 #3C64A6 #5C83C4

Accessibility & contrast

On white

8.99
#2C4979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2C4979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4979
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4979#FFFFFF#000000##FFFFFF
##2C49791.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344D7B
Deuteranopia (green-blind)
#2A4678
Tritanopia (blue-blind)
#00545B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2c4979;
/* rgb */ color: rgb(44, 73, 121);
/* oklch */ color: oklch(40.7% 0.088 260.0);
Tailwind
colors: {
  custom: {
    50: '#6d7ba0',
    500: '#2c4979',
    950: '#000000',
  },
}
SCSS
$custom: #2c4979;
$custom-light: #6d7ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4979",
  "rgb": {
    "r": 44,
    "g": 73,
    "b": 121
  },
  "hsl": {
    "h": 217.403,
    "s": 46.667,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40734,
    "c": 0.08832,
    "h": 260
  },
  "luminance": 0.06681
}

Semantic roles & 50–950 ramp

primary
#2C4979
secondary
#AA8B57
accent
#A451D6
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2C4979

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

Preview Lab → · Contrast checker → · Palette generator →

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