#2C4FA7#2C4FA7

#2C4FA7 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.3% C 0.148 H 264.8°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#2C4FA7
RGBrgb(44, 79, 167)
HSLhsl(223, 58%, 41%)
HSVhsv(223, 74%, 65%)
CMYKcmyk(73.7%, 52.7%, 0%, 34.5%)
CIE-LABlab(35.82, 18.86, -51.09)
CIE-LCHlch(35.82, 54.46, 290.26°)
OKLaboklab(45.35% -0.0134 -0.147)
OKLCHoklch(45.35% 0.148 264.8)
XYZxyz(10.8073, 8.9163, 37.7032)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4FA7 #A7842C
analogous
#2C8DA7 #2C4FA7 #472CA7
triadic
#2C4FA7 #A72C4F #4FA72C
tetradic
#2C4FA7 #A72C8D #A7842C #2CA747
square
#2C4FA7 #A72C8D #A7842C #2CA747
split-complementary
#2C4FA7 #A7472C #8DA72C
monochromatic
#122146 #1F3877 #2C4FA7 #436ACD #7391DA

Accessibility & contrast

On white

7.54
#2C4FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2C4FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4FA7
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4FA7#FFFFFF#000000##FFFFFF
##2C4FA71.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145AAA
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2c4fa7;
/* rgb */ color: rgb(44, 79, 167);
/* oklch */ color: oklch(45.3% 0.148 264.8);
Tailwind
colors: {
  custom: {
    50: '#767fc2',
    500: '#2c4fa7',
    950: '#000000',
  },
}
SCSS
$custom: #2c4fa7;
$custom-light: #767fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4fa7",
  "rgb": {
    "r": 44,
    "g": 79,
    "b": 167
  },
  "hsl": {
    "h": 222.927,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.45345,
    "c": 0.1476,
    "h": 264.8
  },
  "luminance": 0.08917
}

Semantic roles & 50–950 ramp

primary
#2C4FA7
secondary
#C2AA6D
accent
#B546E2
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2C4FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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