#2C4E9D#2C4E9D

#2C4E9D is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.4% C 0.135 H 264.1°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#2C4E9D
RGBrgb(44, 78, 157)
HSLhsl(222, 56%, 39%)
HSVhsv(222, 72%, 62%)
CMYKcmyk(72%, 50.3%, 0%, 38.4%)
CIE-LABlab(34.84, 15.70, -46.69)
CIE-LCHlch(34.84, 49.26, 288.59°)
OKLaboklab(44.37% -0.0137 -0.134)
OKLCHoklch(44.37% 0.135 264.1)
XYZxyz(9.8468, 8.4175, 32.9976)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4E9D #9D7B2C
analogous
#2C879D #2C4E9D #432C9D
triadic
#2C4E9D #9D2C4E #4E9D2C
tetradic
#2C4E9D #9D2C87 #9D7B2C #2C9D43
square
#2C4E9D #9D2C87 #9D7B2C #2C9D43
split-complementary
#2C4E9D #9D432C #879D2C
monochromatic
#111F3D #1F366D #2C4E9D #3D67C9 #6D8DD6

Accessibility & contrast

On white

7.82
#2C4E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2C4E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4E9D
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4E9D#FFFFFF#000000##FFFFFF
##2C4E9D1.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2157A0
Deuteranopia (green-blind)
#004D9B
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2c4e9d;
/* rgb */ color: rgb(44, 78, 157);
/* oklch */ color: oklch(44.4% 0.135 264.1);
Tailwind
colors: {
  custom: {
    50: '#747fba',
    500: '#2c4e9d',
    950: '#000000',
  },
}
SCSS
$custom: #2c4e9d;
$custom-light: #747fba;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4e9d",
  "rgb": {
    "r": 44,
    "g": 78,
    "b": 157
  },
  "hsl": {
    "h": 221.947,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44372,
    "c": 0.13474,
    "h": 264.1
  },
  "luminance": 0.08419
}

Semantic roles & 50–950 ramp

primary
#2C4E9D
secondary
#BDA368
accent
#B248E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2C4E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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