#2C5EAB#2C5EAB

#2C5EAB is a mid, vivid blue. Relative luminance 0.115; OKLCH L 48.9% C 0.135 H 258.9°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#2C5EAB
RGBrgb(44, 94, 171)
HSLhsl(216, 59%, 42%)
HSVhsv(216, 74%, 67%)
CMYKcmyk(74.3%, 45%, 0%, 32.9%)
CIE-LABlab(40.38, 10.51, -46.14)
CIE-LCHlch(40.38, 47.32, 282.84°)
OKLaboklab(48.92% -0.0259 -0.1321)
OKLCHoklch(48.92% 0.135 258.9)
XYZxyz(12.3894, 11.4798, 40.0830)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5EAB #AB792C
analogous
#2C9EAB #2C5EAB #3A2CAB
triadic
#2C5EAB #AB2C5E #5EAB2C
tetradic
#2C5EAB #AB2C9E #AB792C #2CAB3A
square
#2C5EAB #AB2C9E #AB792C #2CAB3A
split-complementary
#2C5EAB #AB3A2C #9EAB2C
monochromatic
#13284A #1F437A #2C5EAB #457BCF #769EDC

Accessibility & contrast

On white

6.37
#2C5EAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#2C5EAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5EAB
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5EAB#FFFFFF#000000##FFFFFF
##2C5EAB1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3765AE
Deuteranopia (green-blind)
#1E5AA9
Tritanopia (blue-blind)
#00707C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2c5eab;
/* rgb */ color: rgb(44, 94, 171);
/* oklch */ color: oklch(48.9% 0.135 258.9);
Tailwind
colors: {
  custom: {
    50: '#768bc4',
    500: '#2c5eab',
    950: '#000000',
  },
}
SCSS
$custom: #2c5eab;
$custom-light: #768bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5eab",
  "rgb": {
    "r": 44,
    "g": 94,
    "b": 171
  },
  "hsl": {
    "h": 216.378,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48918,
    "c": 0.13465,
    "h": 258.9
  },
  "luminance": 0.11481
}

Semantic roles & 50–950 ramp

primary
#2C5EAB
secondary
#C3A26F
accent
#A546E2
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2C5EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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