#2C4C85#2C4C85

#2C4C85 is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.2% C 0.102 H 261.1°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#2C4C85
RGBrgb(44, 76, 133)
HSLhsl(218, 50%, 35%)
HSVhsv(218, 67%, 52%)
CMYKcmyk(66.9%, 42.9%, 0%, 47.8%)
CIE-LABlab(32.69, 7.90, -35.50)
CIE-LCHlch(32.69, 36.37, 282.55°)
OKLaboklab(42.23% -0.0159 -0.1012)
OKLCHoklch(42.23% 0.102 261.1)
XYZxyz(7.8553, 7.3971, 23.1996)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4C85 #85652C
analogous
#2C7985 #2C4C85 #392C85
triadic
#2C4C85 #852C4C #4C852C
tetradic
#2C4C85 #852C79 #85652C #2C8539
square
#2C4C85 #852C79 #85652C #2C8539
split-complementary
#2C4C85 #85392C #79852C
monochromatic
#0E1729 #1D3257 #2C4C85 #3B66B3 #6187CB

Accessibility & contrast

On white

8.47
#2C4C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2C4C85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4C85
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4C85#FFFFFF#000000##FFFFFF
##2C4C851.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325187
Deuteranopia (green-blind)
#244984
Tritanopia (blue-blind)
#005962
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2c4c85;
/* rgb */ color: rgb(44, 76, 133);
/* oklch */ color: oklch(42.2% 0.102 261.1);
Tailwind
colors: {
  custom: {
    50: '#6f7da9',
    500: '#2c4c85',
    950: '#000000',
  },
}
SCSS
$custom: #2c4c85;
$custom-light: #6f7da9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4c85",
  "rgb": {
    "r": 44,
    "g": 76,
    "b": 133
  },
  "hsl": {
    "h": 218.427,
    "s": 50.282,
    "l": 34.706
  },
  "oklch": {
    "l": 0.42225,
    "c": 0.10242,
    "h": 261.1
  },
  "luminance": 0.07398
}

Semantic roles & 50–950 ramp

primary
#2C4C85
secondary
#B1925C
accent
#A84EDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2C4C85

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

Preview Lab → · Contrast checker → · Palette generator →

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