#2C5EA4#2C5EA4

#2C5EA4 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.4% C 0.125 H 257.4°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#2C5EA4
RGBrgb(44, 94, 164)
HSLhsl(215, 58%, 41%)
HSVhsv(215, 73%, 64%)
CMYKcmyk(73.2%, 42.7%, 0%, 35.7%)
CIE-LABlab(39.95, 7.85, -42.68)
CIE-LCHlch(39.95, 43.39, 280.42°)
OKLaboklab(48.45% -0.0273 -0.122)
OKLCHoklch(48.45% 0.125 257.4)
XYZxyz(11.7398, 11.2199, 36.6617)
Luminance0.1122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5EA4 #A4722C
analogous
#2C9AA4 #2C5EA4 #362CA4
triadic
#2C5EA4 #A42C5E #5EA42C
tetradic
#2C5EA4 #A42C9A #A4722C #2CA436
square
#2C5EA4 #A42C9A #A4722C #2CA436
split-complementary
#2C5EA4 #A4362C #9AA42C
monochromatic
#122743 #1F4274 #2C5EA4 #417BCC #719DD9

Accessibility & contrast

On white

6.47
#2C5EA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#2C5EA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5EA4
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5EA4#FFFFFF#000000##FFFFFF
##2C5EA41.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C64A7
Deuteranopia (green-blind)
#2859A3
Tritanopia (blue-blind)
#006E79
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2c5ea4;
/* rgb */ color: rgb(44, 94, 164);
/* oklch */ color: oklch(48.4% 0.125 257.4);
Tailwind
colors: {
  custom: {
    50: '#758bbf',
    500: '#2c5ea4',
    950: '#000000',
  },
}
SCSS
$custom: #2c5ea4;
$custom-light: #758bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5ea4",
  "rgb": {
    "r": 44,
    "g": 94,
    "b": 164
  },
  "hsl": {
    "h": 215,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48448,
    "c": 0.12498,
    "h": 257.4
  },
  "luminance": 0.11221
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C5EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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