#2C4FA8#2C4FA8

#2C4FA8 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.4% C 0.149 H 264.9°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#2C4FA8
RGBrgb(44, 79, 168)
HSLhsl(223, 58%, 42%)
HSVhsv(223, 74%, 66%)
CMYKcmyk(73.8%, 53%, 0%, 34.1%)
CIE-LABlab(35.89, 19.24, -51.57)
CIE-LCHlch(35.89, 55.05, 290.46°)
OKLaboklab(45.42% -0.0133 -0.1484)
OKLCHoklch(45.42% 0.149 264.9)
XYZxyz(10.9001, 8.9534, 38.1919)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4FA8 #A8852C
analogous
#2C8DA8 #2C4FA8 #472CA8
triadic
#2C4FA8 #A82C4F #4FA82C
tetradic
#2C4FA8 #A82C8D #A8852C #2CA847
square
#2C4FA8 #A82C8D #A8852C #2CA847
split-complementary
#2C4FA8 #A8472C #8DA82C
monochromatic
#132147 #1F3878 #2C4FA8 #436ACE #7491DB

Accessibility & contrast

On white

7.52
#2C4FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2C4FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4FA8
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4FA8#FFFFFF#000000##FFFFFF
##2C4FA81.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125AAB
Deuteranopia (green-blind)
#004FA6
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2c4fa8;
/* rgb */ color: rgb(44, 79, 168);
/* oklch */ color: oklch(45.4% 0.149 264.9);
Tailwind
colors: {
  custom: {
    50: '#767fc2',
    500: '#2c4fa8',
    950: '#000000',
  },
}
SCSS
$custom: #2c4fa8;
$custom-light: #767fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4fa8",
  "rgb": {
    "r": 44,
    "g": 79,
    "b": 168
  },
  "hsl": {
    "h": 223.065,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45422,
    "c": 0.149,
    "h": 264.9
  },
  "luminance": 0.08955
}

Semantic roles & 50–950 ramp

primary
#2C4FA8
secondary
#C2AA6E
accent
#B646E2
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2C4FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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