#2C4C9E#2C4C9E

#2C4C9E is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.0% C 0.139 H 265.1°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#2C4C9E
RGBrgb(44, 76, 158)
HSLhsl(223, 56%, 40%)
HSVhsv(223, 72%, 62%)
CMYKcmyk(72.2%, 51.9%, 0%, 38%)
CIE-LABlab(34.34, 17.42, -48.10)
CIE-LCHlch(34.34, 51.15, 289.91°)
OKLaboklab(44.01% -0.0118 -0.1382)
OKLCHoklch(44.01% 0.139 265.1)
XYZxyz(9.7925, 8.1720, 33.4024)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4C9E #9E7E2C
analogous
#2C859E #2C4C9E #452C9E
triadic
#2C4C9E #9E2C4C #4C9E2C
tetradic
#2C4C9E #9E2C85 #9E7E2C #2C9E45
square
#2C4C9E #9E2C85 #9E7E2C #2C9E45
split-complementary
#2C4C9E #9E452C #859E2C
monochromatic
#111E3E #1F356E #2C4C9E #3E65C9 #6E8BD7

Accessibility & contrast

On white

7.97
#2C4C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2C4C9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4C9E
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4C9E#FFFFFF#000000##FFFFFF
##2C4C9E1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1956A1
Deuteranopia (green-blind)
#004C9C
Tritanopia (blue-blind)
#00606D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2c4c9e;
/* rgb */ color: rgb(44, 76, 158);
/* oklch */ color: oklch(44.0% 0.139 265.1);
Tailwind
colors: {
  custom: {
    50: '#747dbb',
    500: '#2c4c9e',
    950: '#000000',
  },
}
SCSS
$custom: #2c4c9e;
$custom-light: #747dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4c9e",
  "rgb": {
    "r": 44,
    "g": 76,
    "b": 158
  },
  "hsl": {
    "h": 223.158,
    "s": 56.436,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44014,
    "c": 0.13873,
    "h": 265.1
  },
  "luminance": 0.08173
}

Semantic roles & 50–950 ramp

primary
#2C4C9E
secondary
#BEA668
accent
#B548E0
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #2C4C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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