#2C5AB7#2C5AB7

#2C5AB7 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.9% C 0.156 H 262.4°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#2C5AB7
RGBrgb(44, 90, 183)
HSLhsl(220, 61%, 45%)
HSVhsv(220, 76%, 72%)
CMYKcmyk(76%, 50.8%, 0%, 28.2%)
CIE-LABlab(40.02, 17.70, -53.77)
CIE-LCHlch(40.02, 56.61, 288.23°)
OKLaboklab(48.9% -0.0206 -0.1547)
OKLCHoklch(48.9% 0.156 262.4)
XYZxyz(13.2391, 11.2652, 46.2672)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5AB7 #B7892C
analogous
#2CA0B7 #2C5AB7 #442CB7
triadic
#2C5AB7 #B72C5A #5AB72C
tetradic
#2C5AB7 #B72CA0 #B7892C #2CB744
square
#2C5AB7 #B72CA0 #B7892C #2CB744
split-complementary
#2C5AB7 #B7442C #A0B72C
monochromatic
#142954 #204286 #2C5AB7 #4C79D4 #7E9EE0

Accessibility & contrast

On white

6.45
#2C5AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#2C5AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5AB7
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5AB7#FFFFFF#000000##FFFFFF
##2C5AB71.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2065BA
Deuteranopia (green-blind)
#0058B5
Tritanopia (blue-blind)
#007080
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2c5ab7;
/* rgb */ color: rgb(44, 90, 183);
/* oklch */ color: oklch(48.9% 0.156 262.4);
Tailwind
colors: {
  custom: {
    50: '#7988cd',
    500: '#2c5ab7',
    950: '#000000',
  },
}
SCSS
$custom: #2c5ab7;
$custom-light: #7988cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5ab7",
  "rgb": {
    "r": 44,
    "g": 90,
    "b": 183
  },
  "hsl": {
    "h": 220.144,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.489,
    "c": 0.15603,
    "h": 262.4
  },
  "luminance": 0.11267
}

Semantic roles & 50–950 ramp

primary
#2C5AB7
secondary
#C8AD76
accent
#AF43E4
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2C5AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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