#2C4B87#2C4B87

#2C4B87 is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.1% C 0.107 H 262.2°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#2C4B87
RGBrgb(44, 75, 135)
HSLhsl(220, 51%, 35%)
HSVhsv(220, 67%, 53%)
CMYKcmyk(67.4%, 44.4%, 0%, 47.1%)
CIE-LABlab(32.52, 9.33, -37.02)
CIE-LCHlch(32.52, 38.17, 284.14°)
OKLaboklab(42.13% -0.0144 -0.1056)
OKLCHoklch(42.13% 0.107 262.2)
XYZxyz(7.9264, 7.3161, 23.9114)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4B87 #87682C
analogous
#2C7987 #2C4B87 #3A2C87
triadic
#2C4B87 #872C4B #4B872C
tetradic
#2C4B87 #872C79 #87682C #2C873A
square
#2C4B87 #872C79 #87682C #2C873A
split-complementary
#2C4B87 #873A2C #79872C
monochromatic
#0E182B #1D3159 #2C4B87 #3B65B5 #6286CC

Accessibility & contrast

On white

8.52
#2C4B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2C4B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4B87
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4B87#FFFFFF#000000##FFFFFF
##2C4B871.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5189
Deuteranopia (green-blind)
#204986
Tritanopia (blue-blind)
#005962
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2c4b87;
/* rgb */ color: rgb(44, 75, 135);
/* oklch */ color: oklch(42.1% 0.107 262.2);
Tailwind
colors: {
  custom: {
    50: '#6f7caa',
    500: '#2c4b87',
    950: '#000000',
  },
}
SCSS
$custom: #2c4b87;
$custom-light: #6f7caa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4b87",
  "rgb": {
    "r": 44,
    "g": 75,
    "b": 135
  },
  "hsl": {
    "h": 219.56,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.42127,
    "c": 0.10663,
    "h": 262.2
  },
  "luminance": 0.07317
}

Semantic roles & 50–950 ramp

primary
#2C4B87
secondary
#B2955D
accent
#AA4DDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2C4B87

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

Preview Lab → · Contrast checker → · Palette generator →

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