#2C4D87#2C4D87

#2C4D87 is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.6% C 0.104 H 260.8°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#2C4D87
RGBrgb(44, 77, 135)
HSLhsl(218, 51%, 35%)
HSVhsv(218, 67%, 53%)
CMYKcmyk(67.4%, 43%, 0%, 47.1%)
CIE-LABlab(33.12, 7.99, -36.06)
CIE-LCHlch(33.12, 36.93, 282.50°)
OKLaboklab(42.59% -0.0166 -0.1028)
OKLCHoklch(42.59% 0.104 260.8)
XYZxyz(8.0642, 7.5917, 23.9573)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4D87 #87662C
analogous
#2C7A87 #2C4D87 #392C87
triadic
#2C4D87 #872C4D #4D872C
tetradic
#2C4D87 #872C7A #87662C #2C8739
square
#2C4D87 #872C7A #87662C #2C8739
split-complementary
#2C4D87 #87392C #7A872C
monochromatic
#0E182B #1D3359 #2C4D87 #3B67B5 #6288CC

Accessibility & contrast

On white

8.34
#2C4D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2C4D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4D87
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4D87#FFFFFF#000000##FFFFFF
##2C4D871.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325289
Deuteranopia (green-blind)
#244A86
Tritanopia (blue-blind)
#005A63
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2c4d87;
/* rgb */ color: rgb(44, 77, 135);
/* oklch */ color: oklch(42.6% 0.104 260.8);
Tailwind
colors: {
  custom: {
    50: '#6f7eaa',
    500: '#2c4d87',
    950: '#000000',
  },
}
SCSS
$custom: #2c4d87;
$custom-light: #6f7eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4d87",
  "rgb": {
    "r": 44,
    "g": 77,
    "b": 135
  },
  "hsl": {
    "h": 218.242,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.42591,
    "c": 0.10413,
    "h": 260.8
  },
  "luminance": 0.07592
}

Semantic roles & 50–950 ramp

primary
#2C4D87
secondary
#B2935D
accent
#A74DDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2C4D87

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

Preview Lab → · Contrast checker → · Palette generator →

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