#2C5CAC#2C5CAC

#2C5CAC is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.5% C 0.138 H 260.0°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#2C5CAC
RGBrgb(44, 92, 172)
HSLhsl(218, 59%, 42%)
HSVhsv(218, 74%, 67%)
CMYKcmyk(74.4%, 46.5%, 0%, 32.5%)
CIE-LABlab(39.86, 12.19, -47.56)
CIE-LCHlch(39.86, 49.10, 284.38°)
OKLaboklab(48.54% -0.0239 -0.1363)
OKLCHoklch(48.54% 0.138 260)
XYZxyz(12.3096, 11.1670, 40.5284)
Luminance0.1117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5CAC #AC7C2C
analogous
#2C9CAC #2C5CAC #3C2CAC
triadic
#2C5CAC #AC2C5C #5CAC2C
tetradic
#2C5CAC #AC2C9C #AC7C2C #2CAC3C
square
#2C5CAC #AC2C9C #AC7C2C #2CAC3C
split-complementary
#2C5CAC #AC3C2C #9CAC2C
monochromatic
#13284B #20427B #2C5CAC #4679D0 #769CDC

Accessibility & contrast

On white

6.49
#2C5CAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#2C5CAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5CAC
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5CAC#FFFFFF#000000##FFFFFF
##2C5CAC1.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3264AF
Deuteranopia (green-blind)
#1558AA
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2c5cac;
/* rgb */ color: rgb(44, 92, 172);
/* oklch */ color: oklch(48.5% 0.138 260.0);
Tailwind
colors: {
  custom: {
    50: '#7789c5',
    500: '#2c5cac',
    950: '#000000',
  },
}
SCSS
$custom: #2c5cac;
$custom-light: #7789c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5cac",
  "rgb": {
    "r": 44,
    "g": 92,
    "b": 172
  },
  "hsl": {
    "h": 217.5,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4854,
    "c": 0.13843,
    "h": 260
  },
  "luminance": 0.11168
}

Semantic roles & 50–950 ramp

primary
#2C5CAC
secondary
#C4A470
accent
#A845E2
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2C5CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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