#2C5AB8#2C5AB8

#2C5AB8 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.0% C 0.157 H 262.5°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#2C5AB8
RGBrgb(44, 90, 184)
HSLhsl(220, 61%, 45%)
HSVhsv(220, 76%, 72%)
CMYKcmyk(76.1%, 51.1%, 0%, 27.8%)
CIE-LABlab(40.09, 18.09, -54.24)
CIE-LCHlch(40.09, 57.18, 288.44°)
OKLaboklab(48.97% -0.0205 -0.1561)
OKLCHoklch(48.97% 0.157 262.5)
XYZxyz(13.3435, 11.3070, 46.8173)
Luminance0.1131 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5AB8 #B88A2C
analogous
#2CA0B8 #2C5AB8 #442CB8
triadic
#2C5AB8 #B82C5A #5AB82C
tetradic
#2C5AB8 #B82CA0 #B88A2C #2CB844
square
#2C5AB8 #B82CA0 #B88A2C #2CB844
split-complementary
#2C5AB8 #B8442C #A0B82C
monochromatic
#142A55 #204287 #2C5AB8 #4D79D4 #7E9EE0

Accessibility & contrast

On white

6.44
#2C5AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#2C5AB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5AB8
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5AB8#FFFFFF#000000##FFFFFF
##2C5AB81.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E65BB
Deuteranopia (green-blind)
#0058B6
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2c5ab8;
/* rgb */ color: rgb(44, 90, 184);
/* oklch */ color: oklch(49.0% 0.157 262.5);
Tailwind
colors: {
  custom: {
    50: '#7988ce',
    500: '#2c5ab8',
    950: '#000000',
  },
}
SCSS
$custom: #2c5ab8;
$custom-light: #7988ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5ab8",
  "rgb": {
    "r": 44,
    "g": 90,
    "b": 184
  },
  "hsl": {
    "h": 220.286,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48974,
    "c": 0.1574,
    "h": 262.5
  },
  "luminance": 0.11308
}

Semantic roles & 50–950 ramp

primary
#2C5AB8
secondary
#C9AE77
accent
#B043E5
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B14
muted
#7C7C82

Preview Lab

Preview with #2C5AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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