#2C4E97#2C4E97

#2C4E97 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.9% C 0.126 H 263.3°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#2C4E97
RGBrgb(44, 78, 151)
HSLhsl(221, 55%, 38%)
HSVhsv(221, 71%, 59%)
CMYKcmyk(70.9%, 48.3%, 0%, 40.8%)
CIE-LABlab(34.43, 13.41, -43.72)
CIE-LCHlch(34.43, 45.73, 287.05°)
OKLaboklab(43.93% -0.0146 -0.1253)
OKLCHoklch(43.93% 0.126 263.3)
XYZxyz(9.3470, 8.2177, 30.3657)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4E97 #97752C
analogous
#2C8397 #2C4E97 #402C97
triadic
#2C4E97 #972C4E #4E972C
tetradic
#2C4E97 #972C83 #97752C #2C9740
square
#2C4E97 #972C83 #97752C #2C9740
split-complementary
#2C4E97 #97402C #83972C
monochromatic
#101D38 #1E3668 #2C4E97 #3A67C6 #6A8BD4

Accessibility & contrast

On white

7.94
#2C4E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2C4E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4E97
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4E97#FFFFFF#000000##FFFFFF
##2C4E971.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27569A
Deuteranopia (green-blind)
#0E4C96
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2c4e97;
/* rgb */ color: rgb(44, 78, 151);
/* oklch */ color: oklch(43.9% 0.126 263.3);
Tailwind
colors: {
  custom: {
    50: '#737fb6',
    500: '#2c4e97',
    950: '#000000',
  },
}
SCSS
$custom: #2c4e97;
$custom-light: #737fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4e97",
  "rgb": {
    "r": 44,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 220.935,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.43931,
    "c": 0.12615,
    "h": 263.3
  },
  "luminance": 0.08219
}

Semantic roles & 50–950 ramp

primary
#2C4E97
secondary
#BA9F65
accent
#AF4ADE
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2C4E97

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

Preview Lab → · Contrast checker → · Palette generator →

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