#2C4987#2C4987

#2C4987 is a dark, moderate blue. Relative luminance 0.070; OKLCH L 41.7% C 0.109 H 263.5°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#2C4987
RGBrgb(44, 73, 135)
HSLhsl(221, 51%, 35%)
HSVhsv(221, 67%, 53%)
CMYKcmyk(67.4%, 45.9%, 0%, 47.1%)
CIE-LABlab(31.92, 10.67, -37.97)
CIE-LCHlch(31.92, 39.44, 285.70°)
OKLaboklab(41.67% -0.0123 -0.1085)
OKLCHoklch(41.67% 0.109 263.5)
XYZxyz(7.7929, 7.0491, 23.8669)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4987 #876A2C
analogous
#2C7787 #2C4987 #3C2C87
triadic
#2C4987 #872C49 #49872C
tetradic
#2C4987 #872C77 #876A2C #2C873C
square
#2C4987 #872C77 #876A2C #2C873C
split-complementary
#2C4987 #873C2C #77872C
monochromatic
#0E172B #1D3059 #2C4987 #3B62B5 #6283CC

Accessibility & contrast

On white

8.71
#2C4987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2C4987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4987
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4987#FFFFFF#000000##FFFFFF
##2C49871.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5089
Deuteranopia (green-blind)
#1C4786
Tritanopia (blue-blind)
#005761
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2c4987;
/* rgb */ color: rgb(44, 73, 135);
/* oklch */ color: oklch(41.7% 0.109 263.5);
Tailwind
colors: {
  custom: {
    50: '#6f7baa',
    500: '#2c4987',
    950: '#000000',
  },
}
SCSS
$custom: #2c4987;
$custom-light: #6f7baa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4987",
  "rgb": {
    "r": 44,
    "g": 73,
    "b": 135
  },
  "hsl": {
    "h": 220.879,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41667,
    "c": 0.10918,
    "h": 263.5
  },
  "luminance": 0.0705
}

Semantic roles & 50–950 ramp

primary
#2C4987
secondary
#B2975D
accent
#AD4DDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2C4987

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

Preview Lab → · Contrast checker → · Palette generator →

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