#2C4E85#2C4E85

#2C4E85 is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.7% C 0.100 H 259.6°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#2C4E85
RGBrgb(44, 78, 133)
HSLhsl(217, 50%, 35%)
HSVhsv(217, 67%, 52%)
CMYKcmyk(66.9%, 41.4%, 0%, 47.8%)
CIE-LABlab(33.30, 6.58, -34.53)
CIE-LCHlch(33.30, 35.15, 280.78°)
OKLaboklab(42.69% -0.0181 -0.0983)
OKLCHoklch(42.69% 0.1 259.6)
XYZxyz(7.9952, 7.6769, 23.2462)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4E85 #85632C
analogous
#2C7A85 #2C4E85 #372C85
triadic
#2C4E85 #852C4E #4E852C
tetradic
#2C4E85 #852C7A #85632C #2C8537
square
#2C4E85 #852C7A #85632C #2C8537
split-complementary
#2C4E85 #85372C #7A852C
monochromatic
#0E1829 #1D3357 #2C4E85 #3B69B3 #6189CB

Accessibility & contrast

On white

8.28
#2C4E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2C4E85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4E85
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4E85#FFFFFF#000000##FFFFFF
##2C4E851.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355387
Deuteranopia (green-blind)
#284A84
Tritanopia (blue-blind)
#005B63
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2c4e85;
/* rgb */ color: rgb(44, 78, 133);
/* oklch */ color: oklch(42.7% 0.100 259.6);
Tailwind
colors: {
  custom: {
    50: '#6f7fa9',
    500: '#2c4e85',
    950: '#000000',
  },
}
SCSS
$custom: #2c4e85;
$custom-light: #6f7fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4e85",
  "rgb": {
    "r": 44,
    "g": 78,
    "b": 133
  },
  "hsl": {
    "h": 217.079,
    "s": 50.282,
    "l": 34.706
  },
  "oklch": {
    "l": 0.42694,
    "c": 0.09997,
    "h": 259.6
  },
  "luminance": 0.07678
}

Semantic roles & 50–950 ramp

primary
#2C4E85
secondary
#B1905C
accent
#A44EDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2C4E85

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

Preview Lab → · Contrast checker → · Palette generator →

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