#2C4E95#2C4E95

#2C4E95 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.8% C 0.123 H 263.0°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#2C4E95
RGBrgb(44, 78, 149)
HSLhsl(221, 54%, 38%)
HSVhsv(221, 70%, 58%)
CMYKcmyk(70.5%, 47.7%, 0%, 41.6%)
CIE-LABlab(34.30, 12.65, -42.72)
CIE-LCHlch(34.30, 44.55, 286.49°)
OKLaboklab(43.79% -0.0149 -0.1223)
OKLCHoklch(43.79% 0.123 263)
XYZxyz(9.1860, 8.1532, 29.5176)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4E95 #95732C
analogous
#2C8395 #2C4E95 #3E2C95
triadic
#2C4E95 #952C4E #4E952C
tetradic
#2C4E95 #952C83 #95732C #2C953E
square
#2C4E95 #952C83 #95732C #2C953E
split-complementary
#2C4E95 #953E2C #83952C
monochromatic
#101D37 #1E3566 #2C4E95 #3A67C4 #698BD3

Accessibility & contrast

On white

7.98
#2C4E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2C4E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4E95
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4E95#FFFFFF#000000##FFFFFF
##2C4E951.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295698
Deuteranopia (green-blind)
#134C94
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2c4e95;
/* rgb */ color: rgb(44, 78, 149);
/* oklch */ color: oklch(43.8% 0.123 263.0);
Tailwind
colors: {
  custom: {
    50: '#727fb5',
    500: '#2c4e95',
    950: '#000000',
  },
}
SCSS
$custom: #2c4e95;
$custom-light: #727fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4e95",
  "rgb": {
    "r": 44,
    "g": 78,
    "b": 149
  },
  "hsl": {
    "h": 220.571,
    "s": 54.404,
    "l": 37.843
  },
  "oklch": {
    "l": 0.43788,
    "c": 0.12326,
    "h": 263
  },
  "luminance": 0.08154
}

Semantic roles & 50–950 ramp

primary
#2C4E95
secondary
#B99E64
accent
#AE4ADE
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2C4E95

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

Preview Lab → · Contrast checker → · Palette generator →

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