#2C5CAB#2C5CAB

#2C5CAB is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.5% C 0.137 H 259.9°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#2C5CAB
RGBrgb(44, 92, 171)
HSLhsl(217, 59%, 42%)
HSVhsv(217, 74%, 67%)
CMYKcmyk(74.3%, 46.2%, 0%, 32.9%)
CIE-LABlab(39.80, 11.81, -47.07)
CIE-LCHlch(39.80, 48.53, 284.09°)
OKLaboklab(48.47% -0.0241 -0.1349)
OKLCHoklch(48.47% 0.137 259.9)
XYZxyz(12.2139, 11.1287, 40.0245)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5CAB #AB7B2C
analogous
#2C9CAB #2C5CAB #3C2CAB
triadic
#2C5CAB #AB2C5C #5CAB2C
tetradic
#2C5CAB #AB2C9C #AB7B2C #2CAB3C
square
#2C5CAB #AB2C9C #AB7B2C #2CAB3C
split-complementary
#2C5CAB #AB3C2C #9CAB2C
monochromatic
#13284A #1F427A #2C5CAB #4579CF #769CDC

Accessibility & contrast

On white

6.51
#2C5CAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2C5CAB
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5CAB#FFFFFF#000000##FFFFFF
##2C5CAB1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3364AE
Deuteranopia (green-blind)
#1758A9
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2c5cab;
/* rgb */ color: rgb(44, 92, 171);
/* oklch */ color: oklch(48.5% 0.137 259.9);
Tailwind
colors: {
  custom: {
    50: '#7689c4',
    500: '#2c5cab',
    950: '#000000',
  },
}
SCSS
$custom: #2c5cab;
$custom-light: #7689c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5cab",
  "rgb": {
    "r": 44,
    "g": 92,
    "b": 171
  },
  "hsl": {
    "h": 217.323,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4847,
    "c": 0.13705,
    "h": 259.9
  },
  "luminance": 0.1113
}

Semantic roles & 50–950 ramp

primary
#2C5CAB
secondary
#C3A46F
accent
#A746E2
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2C5CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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