#2C5EA6#2C5EA6

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

Color values

HEX#2C5EA6
RGBrgb(44, 94, 166)
HSLhsl(215, 58%, 41%)
HSVhsv(215, 73%, 65%)
CMYKcmyk(73.5%, 43.4%, 0%, 34.9%)
CIE-LABlab(40.07, 8.61, -43.67)
CIE-LCHlch(40.07, 44.51, 281.15°)
OKLaboklab(48.58% -0.0269 -0.1249)
OKLCHoklch(48.58% 0.128 257.8)
XYZxyz(11.9218, 11.2927, 37.6204)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5EA6 #A6742C
analogous
#2C9BA6 #2C5EA6 #372CA6
triadic
#2C5EA6 #A62C5E #5EA62C
tetradic
#2C5EA6 #A62C9B #A6742C #2CA637
square
#2C5EA6 #A62C9B #A6742C #2CA637
split-complementary
#2C5EA6 #A6372C #9BA62C
monochromatic
#122745 #1F4376 #2C5EA6 #427BCD #739DDA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C5EA6#FFFFFF#000000##FFFFFF
##2C5EA61.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)
#3B64A9
Deuteranopia (green-blind)
#2559A5
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2c5ea6;
/* rgb */ color: rgb(44, 94, 166);
/* oklch */ color: oklch(48.6% 0.128 257.8);
Tailwind
colors: {
  custom: {
    50: '#758bc1',
    500: '#2c5ea6',
    950: '#000000',
  },
}
SCSS
$custom: #2c5ea6;
$custom-light: #758bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5ea6",
  "rgb": {
    "r": 44,
    "g": 94,
    "b": 166
  },
  "hsl": {
    "h": 215.41,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48581,
    "c": 0.12774,
    "h": 257.8
  },
  "luminance": 0.11294
}

Semantic roles & 50–950 ramp

primary
#2C5EA6
secondary
#C19F6D
accent
#A246E1
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2C5EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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