#2C5EA5#2C5EA5

#2C5EA5 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.5% C 0.126 H 257.6°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#2C5EA5
RGBrgb(44, 94, 165)
HSLhsl(215, 58%, 41%)
HSVhsv(215, 73%, 65%)
CMYKcmyk(73.3%, 43%, 0%, 35.3%)
CIE-LABlab(40.01, 8.23, -43.17)
CIE-LCHlch(40.01, 43.95, 280.79°)
OKLaboklab(48.51% -0.0271 -0.1234)
OKLCHoklch(48.51% 0.126 257.6)
XYZxyz(11.8305, 11.2562, 37.1392)
Luminance0.1126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5EA5 #A5732C
analogous
#2C9AA5 #2C5EA5 #372CA5
triadic
#2C5EA5 #A52C5E #5EA52C
tetradic
#2C5EA5 #A52C9A #A5732C #2CA537
square
#2C5EA5 #A52C9A #A5732C #2CA537
split-complementary
#2C5EA5 #A5372C #9AA52C
monochromatic
#122744 #1F4275 #2C5EA5 #427BCD #729DD9

Accessibility & contrast

On white

6.46
#2C5EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2C5EA5
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5EA5#FFFFFF#000000##FFFFFF
##2C5EA51.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C64A8
Deuteranopia (green-blind)
#2659A4
Tritanopia (blue-blind)
#006F79
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2c5ea5;
/* rgb */ color: rgb(44, 94, 165);
/* oklch */ color: oklch(48.5% 0.126 257.6);
Tailwind
colors: {
  custom: {
    50: '#758bc0',
    500: '#2c5ea5',
    950: '#000000',
  },
}
SCSS
$custom: #2c5ea5;
$custom-light: #758bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5ea5",
  "rgb": {
    "r": 44,
    "g": 94,
    "b": 165
  },
  "hsl": {
    "h": 215.207,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48514,
    "c": 0.12636,
    "h": 257.6
  },
  "luminance": 0.11257
}

Semantic roles & 50–950 ramp

primary
#2C5EA5
secondary
#C19E6C
accent
#A147E1
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2C5EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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