#2C5AA6#2C5AA6

#2C5AA6 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.7% C 0.133 H 259.9°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#2C5AA6
RGBrgb(44, 90, 166)
HSLhsl(217, 58%, 41%)
HSVhsv(217, 73%, 65%)
CMYKcmyk(73.5%, 45.8%, 0%, 34.9%)
CIE-LABlab(38.90, 11.21, -45.55)
CIE-LCHlch(38.90, 46.90, 283.83°)
OKLaboklab(47.68% -0.0232 -0.1305)
OKLCHoklch(47.68% 0.133 259.9)
XYZxyz(11.5753, 10.5997, 37.5049)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5AA6 #A6782C
analogous
#2C97A6 #2C5AA6 #3B2CA6
triadic
#2C5AA6 #A62C5A #5AA62C
tetradic
#2C5AA6 #A62C97 #A6782C #2CA63B
square
#2C5AA6 #A62C97 #A6782C #2CA63B
split-complementary
#2C5AA6 #A63B2C #97A62C
monochromatic
#122645 #1F4076 #2C5AA6 #4277CD #739ADA

Accessibility & contrast

On white

6.73
#2C5AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#2C5AA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5AA6
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5AA6#FFFFFF#000000##FFFFFF
##2C5AA61.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3362A9
Deuteranopia (green-blind)
#1A56A4
Tritanopia (blue-blind)
#006C78
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2c5aa6;
/* rgb */ color: rgb(44, 90, 166);
/* oklch */ color: oklch(47.7% 0.133 259.9);
Tailwind
colors: {
  custom: {
    50: '#7588c1',
    500: '#2c5aa6',
    950: '#000000',
  },
}
SCSS
$custom: #2c5aa6;
$custom-light: #7588c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5aa6",
  "rgb": {
    "r": 44,
    "g": 90,
    "b": 166
  },
  "hsl": {
    "h": 217.377,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47676,
    "c": 0.13251,
    "h": 259.9
  },
  "luminance": 0.10601
}

Semantic roles & 50–950 ramp

primary
#2C5AA6
secondary
#C1A16D
accent
#A746E1
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2C5AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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