#2C4D9D#2C4D9D

#2C4D9D is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.2% C 0.136 H 264.6°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#2C4D9D
RGBrgb(44, 77, 157)
HSLhsl(222, 56%, 39%)
HSVhsv(222, 72%, 62%)
CMYKcmyk(72%, 51%, 0%, 38.4%)
CIE-LABlab(34.55, 16.37, -47.15)
CIE-LCHlch(34.55, 49.91, 289.15°)
OKLaboklab(44.15% -0.0128 -0.1354)
OKLCHoklch(44.15% 0.136 264.6)
XYZxyz(9.7762, 8.2765, 32.9741)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4D9D #9D7C2C
analogous
#2C869D #2C4D9D #442C9D
triadic
#2C4D9D #9D2C4D #4D9D2C
tetradic
#2C4D9D #9D2C86 #9D7C2C #2C9D44
square
#2C4D9D #9D2C86 #9D7C2C #2C9D44
split-complementary
#2C4D9D #9D442C #869D2C
monochromatic
#111E3D #1F366D #2C4D9D #3D66C9 #6D8CD6

Accessibility & contrast

On white

7.91
#2C4D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2C4D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4D9D
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4D9D#FFFFFF#000000##FFFFFF
##2C4D9D1.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E57A0
Deuteranopia (green-blind)
#004C9B
Tritanopia (blue-blind)
#00606D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2c4d9d;
/* rgb */ color: rgb(44, 77, 157);
/* oklch */ color: oklch(44.2% 0.136 264.6);
Tailwind
colors: {
  custom: {
    50: '#747eba',
    500: '#2c4d9d',
    950: '#000000',
  },
}
SCSS
$custom: #2c4d9d;
$custom-light: #747eba;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4d9d",
  "rgb": {
    "r": 44,
    "g": 77,
    "b": 157
  },
  "hsl": {
    "h": 222.478,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44154,
    "c": 0.13602,
    "h": 264.6
  },
  "luminance": 0.08278
}

Semantic roles & 50–950 ramp

primary
#2C4D9D
secondary
#BDA468
accent
#B348E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #2C4D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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