#2C4F97#2C4F97

#2C4F97 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.2% C 0.125 H 262.8°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#2C4F97
RGBrgb(44, 79, 151)
HSLhsl(220, 55%, 38%)
HSVhsv(220, 71%, 59%)
CMYKcmyk(70.9%, 47.7%, 0%, 40.8%)
CIE-LABlab(34.72, 12.74, -43.25)
CIE-LCHlch(34.72, 45.09, 286.42°)
OKLaboklab(44.16% -0.0156 -0.1239)
OKLCHoklch(44.16% 0.125 262.8)
XYZxyz(9.4186, 8.3608, 30.3896)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4F97 #97742C
analogous
#2C8497 #2C4F97 #3E2C97
triadic
#2C4F97 #972C4F #4F972C
tetradic
#2C4F97 #972C84 #97742C #2C973E
square
#2C4F97 #972C84 #97742C #2C973E
split-complementary
#2C4F97 #973E2C #84972C
monochromatic
#101D38 #1E3668 #2C4F97 #3A68C6 #6A8CD4

Accessibility & contrast

On white

7.86
#2C4F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2C4F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4F97
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4F97#FFFFFF#000000##FFFFFF
##2C4F971.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A579A
Deuteranopia (green-blind)
#124D96
Tritanopia (blue-blind)
#00606B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2c4f97;
/* rgb */ color: rgb(44, 79, 151);
/* oklch */ color: oklch(44.2% 0.125 262.8);
Tailwind
colors: {
  custom: {
    50: '#737fb6',
    500: '#2c4f97',
    950: '#000000',
  },
}
SCSS
$custom: #2c4f97;
$custom-light: #737fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4f97",
  "rgb": {
    "r": 44,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 220.374,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.44155,
    "c": 0.12487,
    "h": 262.8
  },
  "luminance": 0.08362
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C4F97

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

Preview Lab → · Contrast checker → · Palette generator →

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