#2C4A8A#2C4A8A

#2C4A8A is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.1% C 0.112 H 263.4°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#2C4A8A
RGBrgb(44, 74, 138)
HSLhsl(221, 52%, 36%)
HSVhsv(221, 68%, 54%)
CMYKcmyk(68.1%, 46.4%, 0%, 45.9%)
CIE-LABlab(32.41, 11.14, -39.03)
CIE-LCHlch(32.41, 40.59, 285.92°)
OKLaboklab(42.11% -0.0128 -0.1116)
OKLCHoklch(42.11% 0.112 263.4)
XYZxyz(8.0733, 7.2672, 25.0171)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4A8A #8A6C2C
analogous
#2C798A #2C4A8A #3D2C8A
triadic
#2C4A8A #8A2C4A #4A8A2C
tetradic
#2C4A8A #8A2C79 #8A6C2C #2C8A3D
square
#2C4A8A #8A2C79 #8A6C2C #2C8A3D
split-complementary
#2C4A8A #8A3D2C #798A2C
monochromatic
#0E182D #1D315C #2C4A8A #3B63B8 #6385CD

Accessibility & contrast

On white

8.56
#2C4A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2C4A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4A8A
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4A8A#FFFFFF#000000##FFFFFF
##2C4A8A1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B518C
Deuteranopia (green-blind)
#1A4889
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2c4a8a;
/* rgb */ color: rgb(44, 74, 138);
/* oklch */ color: oklch(42.1% 0.112 263.4);
Tailwind
colors: {
  custom: {
    50: '#707cac',
    500: '#2c4a8a',
    950: '#000000',
  },
}
SCSS
$custom: #2c4a8a;
$custom-light: #707cac;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4a8a",
  "rgb": {
    "r": 44,
    "g": 74,
    "b": 138
  },
  "hsl": {
    "h": 220.851,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42105,
    "c": 0.11232,
    "h": 263.4
  },
  "luminance": 0.07268
}

Semantic roles & 50–950 ramp

primary
#2C4A8A
secondary
#B4985E
accent
#AE4DDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2C4A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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