#2C4E89#2C4E89

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

Color values

HEX#2C4E89
RGBrgb(44, 78, 137)
HSLhsl(218, 51%, 35%)
HSVhsv(218, 68%, 54%)
CMYKcmyk(67.9%, 43.1%, 0%, 46.3%)
CIE-LABlab(33.54, 8.08, -36.61)
CIE-LCHlch(33.54, 37.49, 282.45°)
OKLaboklab(42.96% -0.0172 -0.1044)
OKLCHoklch(42.96% 0.106 260.7)
XYZxyz(8.2768, 7.7896, 24.7294)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4E89 #89672C
analogous
#2C7C89 #2C4E89 #392C89
triadic
#2C4E89 #892C4E #4E892C
tetradic
#2C4E89 #892C7C #89672C #2C8939
square
#2C4E89 #892C7C #89672C #2C8939
split-complementary
#2C4E89 #89392C #7C892C
monochromatic
#0E192C #1D345B #2C4E89 #3B68B7 #6389CD

Accessibility & contrast

On white

8.21
#2C4E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C4E89
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4E89#FFFFFF#000000##FFFFFF
##2C4E891.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33548B
Deuteranopia (green-blind)
#244B88
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2c4e89;
/* rgb */ color: rgb(44, 78, 137);
/* oklch */ color: oklch(43.0% 0.106 260.7);
Tailwind
colors: {
  custom: {
    50: '#707fac',
    500: '#2c4e89',
    950: '#000000',
  },
}
SCSS
$custom: #2c4e89;
$custom-light: #707fac;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4e89",
  "rgb": {
    "r": 44,
    "g": 78,
    "b": 137
  },
  "hsl": {
    "h": 218.065,
    "s": 51.381,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42958,
    "c": 0.10582,
    "h": 260.7
  },
  "luminance": 0.0779
}

Semantic roles & 50–950 ramp

primary
#2C4E89
secondary
#B3945E
accent
#A74DDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2C4E89

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

Preview Lab → · Contrast checker → · Palette generator →

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