#2C4EAB#2C4EAB

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

Color values

HEX#2C4EAB
RGBrgb(44, 78, 171)
HSLhsl(224, 59%, 42%)
HSVhsv(224, 74%, 67%)
CMYKcmyk(74.3%, 54.4%, 0%, 32.9%)
CIE-LABlab(35.84, 21.05, -53.46)
CIE-LCHlch(35.84, 57.45, 291.49°)
OKLaboklab(45.45% -0.0123 -0.1539)
OKLCHoklch(45.45% 0.154 265.4)
XYZxyz(11.1112, 8.9233, 39.6570)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4EAB #AB892C
analogous
#2C8EAB #2C4EAB #4A2CAB
triadic
#2C4EAB #AB2C4E #4EAB2C
tetradic
#2C4EAB #AB2C8E #AB892C #2CAB4A
square
#2C4EAB #AB2C8E #AB892C #2CAB4A
split-complementary
#2C4EAB #AB4A2C #8EAB2C
monochromatic
#13224A #1F387A #2C4EAB #456ACF #7691DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C4EAB#FFFFFF#000000##FFFFFF
##2C4EAB1.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)
#025AAE
Deuteranopia (green-blind)
#004FA9
Tritanopia (blue-blind)
#006575
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2c4eab;
/* rgb */ color: rgb(44, 78, 171);
/* oklch */ color: oklch(45.4% 0.154 265.4);
Tailwind
colors: {
  custom: {
    50: '#777fc5',
    500: '#2c4eab',
    950: '#000000',
  },
}
SCSS
$custom: #2c4eab;
$custom-light: #777fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4eab",
  "rgb": {
    "r": 44,
    "g": 78,
    "b": 171
  },
  "hsl": {
    "h": 223.937,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45447,
    "c": 0.15444,
    "h": 265.4
  },
  "luminance": 0.08925
}

Semantic roles & 50–950 ramp

primary
#2C4EAB
secondary
#C3AD6F
accent
#B846E2
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2C4EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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