#2C4E8A#2C4E8A

#2C4E8A is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.0% C 0.107 H 260.9°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#2C4E8A
RGBrgb(44, 78, 138)
HSLhsl(218, 52%, 36%)
HSVhsv(218, 68%, 54%)
CMYKcmyk(68.1%, 43.5%, 0%, 45.9%)
CIE-LABlab(33.60, 8.46, -37.13)
CIE-LCHlch(33.60, 38.08, 282.84°)
OKLaboklab(43.03% -0.017 -0.1059)
OKLCHoklch(43.03% 0.107 260.9)
XYZxyz(8.3489, 7.8184, 25.1089)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4E8A #8A682C
analogous
#2C7D8A #2C4E8A #392C8A
triadic
#2C4E8A #8A2C4E #4E8A2C
tetradic
#2C4E8A #8A2C7D #8A682C #2C8A39
square
#2C4E8A #8A2C7D #8A682C #2C8A39
split-complementary
#2C4E8A #8A392C #7D8A2C
monochromatic
#0E1A2D #1D345C #2C4E8A #3B68B8 #638ACD

Accessibility & contrast

On white

8.19
#2C4E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2C4E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4E8A
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4E8A#FFFFFF#000000##FFFFFF
##2C4E8A1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548C
Deuteranopia (green-blind)
#234B89
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2c4e8a;
/* rgb */ color: rgb(44, 78, 138);
/* oklch */ color: oklch(43.0% 0.107 260.9);
Tailwind
colors: {
  custom: {
    50: '#707fac',
    500: '#2c4e8a',
    950: '#000000',
  },
}
SCSS
$custom: #2c4e8a;
$custom-light: #707fac;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4e8a",
  "rgb": {
    "r": 44,
    "g": 78,
    "b": 138
  },
  "hsl": {
    "h": 218.298,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.43025,
    "c": 0.10727,
    "h": 260.9
  },
  "luminance": 0.07819
}

Semantic roles & 50–950 ramp

primary
#2C4E8A
secondary
#B4955E
accent
#A84DDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2C4E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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