#2C4EA7#2C4EA7

#2C4EA7 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.1% C 0.149 H 265.1°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#2C4EA7
RGBrgb(44, 78, 167)
HSLhsl(223, 58%, 41%)
HSVhsv(223, 74%, 65%)
CMYKcmyk(73.7%, 53.3%, 0%, 34.5%)
CIE-LABlab(35.54, 19.52, -51.55)
CIE-LCHlch(35.54, 55.12, 290.74°)
OKLaboklab(45.13% -0.0126 -0.1483)
OKLCHoklch(45.13% 0.149 265.1)
XYZxyz(10.7357, 8.7731, 37.6793)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4EA7 #A7852C
analogous
#2C8CA7 #2C4EA7 #482CA7
triadic
#2C4EA7 #A72C4E #4EA72C
tetradic
#2C4EA7 #A72C8C #A7852C #2CA748
square
#2C4EA7 #A72C8C #A7852C #2CA748
split-complementary
#2C4EA7 #A7482C #8CA72C
monochromatic
#122146 #1F3777 #2C4EA7 #4369CD #7390DA

Accessibility & contrast

On white

7.62
#2C4EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2C4EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4EA7
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4EA7#FFFFFF#000000##FFFFFF
##2C4EA71.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F5AAA
Deuteranopia (green-blind)
#004EA5
Tritanopia (blue-blind)
#006373
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2c4ea7;
/* rgb */ color: rgb(44, 78, 167);
/* oklch */ color: oklch(45.1% 0.149 265.1);
Tailwind
colors: {
  custom: {
    50: '#767fc2',
    500: '#2c4ea7',
    950: '#000000',
  },
}
SCSS
$custom: #2c4ea7;
$custom-light: #767fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4ea7",
  "rgb": {
    "r": 44,
    "g": 78,
    "b": 167
  },
  "hsl": {
    "h": 223.415,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.45133,
    "c": 0.14887,
    "h": 265.1
  },
  "luminance": 0.08774
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C4EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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