#2C4CAC#2C4CAC

#2C4CAC is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.1% C 0.158 H 266.2°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#2C4CAC
RGBrgb(44, 76, 172)
HSLhsl(225, 59%, 42%)
HSVhsv(225, 74%, 67%)
CMYKcmyk(74.4%, 55.8%, 0%, 32.5%)
CIE-LABlab(35.36, 22.76, -54.82)
CIE-LCHlch(35.36, 59.35, 292.55°)
OKLaboklab(45.12% -0.0106 -0.158)
OKLCHoklch(45.12% 0.158 266.2)
XYZxyz(11.0669, 8.6817, 40.1142)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4CAC #AC8C2C
analogous
#2C8CAC #2C4CAC #4C2CAC
triadic
#2C4CAC #AC2C4C #4CAC2C
tetradic
#2C4CAC #AC2C8C #AC8C2C #2CAC4C
square
#2C4CAC #AC2C8C #AC8C2C #2CAC4C
split-complementary
#2C4CAC #AC4C2C #8CAC2C
monochromatic
#13214B #20367B #2C4CAC #4668D0 #7690DC

Accessibility & contrast

On white

7.67
#2C4CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#2C4CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4CAC
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4CAC#FFFFFF#000000##FFFFFF
##2C4CAC1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AF
Deuteranopia (green-blind)
#004EAA
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2c4cac;
/* rgb */ color: rgb(44, 76, 172);
/* oklch */ color: oklch(45.1% 0.158 266.2);
Tailwind
colors: {
  custom: {
    50: '#777dc5',
    500: '#2c4cac',
    950: '#000000',
  },
}
SCSS
$custom: #2c4cac;
$custom-light: #777dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4cac",
  "rgb": {
    "r": 44,
    "g": 76,
    "b": 172
  },
  "hsl": {
    "h": 225,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45115,
    "c": 0.15835,
    "h": 266.2
  },
  "luminance": 0.08683
}

Semantic roles & 50–950 ramp

primary
#2C4CAC
secondary
#C4AF70
accent
#BB45E2
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2C4CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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