#2C4F9D#2C4F9D

#2C4F9D is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.6% C 0.133 H 263.7°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#2C4F9D
RGBrgb(44, 79, 157)
HSLhsl(221, 56%, 39%)
HSVhsv(221, 72%, 62%)
CMYKcmyk(72%, 49.7%, 0%, 38.4%)
CIE-LABlab(35.12, 15.03, -46.23)
CIE-LCHlch(35.12, 48.61, 288.02°)
OKLaboklab(44.59% -0.0146 -0.1327)
OKLCHoklch(44.59% 0.133 263.7)
XYZxyz(9.9183, 8.5607, 33.0214)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4F9D #9D7A2C
analogous
#2C889D #2C4F9D #422C9D
triadic
#2C4F9D #9D2C4F #4F9D2C
tetradic
#2C4F9D #9D2C88 #9D7A2C #2C9D42
square
#2C4F9D #9D2C88 #9D7A2C #2C9D42
split-complementary
#2C4F9D #9D422C #889D2C
monochromatic
#111F3D #1F376D #2C4F9D #3D69C9 #6D8ED6

Accessibility & contrast

On white

7.74
#2C4F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#2C4F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4F9D
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4F9D#FFFFFF#000000##FFFFFF
##2C4F9D1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2358A0
Deuteranopia (green-blind)
#004E9B
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2c4f9d;
/* rgb */ color: rgb(44, 79, 157);
/* oklch */ color: oklch(44.6% 0.133 263.7);
Tailwind
colors: {
  custom: {
    50: '#747fba',
    500: '#2c4f9d',
    950: '#000000',
  },
}
SCSS
$custom: #2c4f9d;
$custom-light: #747fba;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4f9d",
  "rgb": {
    "r": 44,
    "g": 79,
    "b": 157
  },
  "hsl": {
    "h": 221.416,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4459,
    "c": 0.13347,
    "h": 263.7
  },
  "luminance": 0.08562
}

Semantic roles & 50–950 ramp

primary
#2C4F9D
secondary
#BDA368
accent
#B148E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2C4F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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