#2C4881#2C4881

#2C4881 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.0% C 0.102 H 263.0°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#2C4881
RGBrgb(44, 72, 129)
HSLhsl(220, 49%, 34%)
HSVhsv(220, 66%, 51%)
CMYKcmyk(65.9%, 44.2%, 0%, 49.4%)
CIE-LABlab(31.24, 9.07, -35.34)
CIE-LCHlch(31.24, 36.49, 284.40°)
OKLaboklab(41.02% -0.0124 -0.1008)
OKLCHoklch(41.02% 0.102 263)
XYZxyz(7.3171, 6.7545, 21.6828)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4881 #81652C
analogous
#2C7381 #2C4881 #3B2C81
triadic
#2C4881 #812C48 #48812C
tetradic
#2C4881 #812C73 #81652C #2C813B
square
#2C4881 #812C73 #81652C #2C813B
split-complementary
#2C4881 #813B2C #73812C
monochromatic
#0D1526 #1C2F53 #2C4881 #3C61AF #5F82C8

Accessibility & contrast

On white

8.93
#2C4881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2C4881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4881
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4881#FFFFFF#000000##FFFFFF
##2C48811.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4E83
Deuteranopia (green-blind)
#214680
Tritanopia (blue-blind)
#00555E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2c4881;
/* rgb */ color: rgb(44, 72, 129);
/* oklch */ color: oklch(41.0% 0.102 263.0);
Tailwind
colors: {
  custom: {
    50: '#6e7aa6',
    500: '#2c4881',
    950: '#000000',
  },
}
SCSS
$custom: #2c4881;
$custom-light: #6e7aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4881",
  "rgb": {
    "r": 44,
    "g": 72,
    "b": 129
  },
  "hsl": {
    "h": 220.235,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.41024,
    "c": 0.10154,
    "h": 263
  },
  "luminance": 0.06755
}

Semantic roles & 50–950 ramp

primary
#2C4881
secondary
#AF935A
accent
#AB4FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2C4881

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

Preview Lab → · Contrast checker → · Palette generator →

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