#2C5EB1#2C5EB1

#2C5EB1 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.3% C 0.143 H 260.0°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#2C5EB1
RGBrgb(44, 94, 177)
HSLhsl(217, 60%, 43%)
HSVhsv(217, 75%, 69%)
CMYKcmyk(75.1%, 46.9%, 0%, 30.6%)
CIE-LABlab(40.76, 12.80, -49.06)
CIE-LCHlch(40.76, 50.70, 284.62°)
OKLaboklab(49.33% -0.0248 -0.1407)
OKLCHoklch(49.33% 0.143 260)
XYZxyz(12.9743, 11.7138, 43.1636)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5EB1 #B17F2C
analogous
#2CA0B1 #2C5EB1 #3D2CB1
triadic
#2C5EB1 #B12C5E #5EB12C
tetradic
#2C5EB1 #B12CA0 #B17F2C #2CB13D
square
#2C5EB1 #B12CA0 #B17F2C #2CB13D
split-complementary
#2C5EB1 #B13D2C #A0B12C
monochromatic
#142A4F #204480 #2C5EB1 #497CD2 #7A9FDE

Accessibility & contrast

On white

6.28
#2C5EB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#2C5EB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5EB1
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5EB1#FFFFFF#000000##FFFFFF
##2C5EB11.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3267B4
Deuteranopia (green-blind)
#105AAF
Tritanopia (blue-blind)
#00727F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2c5eb1;
/* rgb */ color: rgb(44, 94, 177);
/* oklch */ color: oklch(49.3% 0.143 260.0);
Tailwind
colors: {
  custom: {
    50: '#788bc9',
    500: '#2c5eb1',
    950: '#000000',
  },
}
SCSS
$custom: #2c5eb1;
$custom-light: #788bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5eb1",
  "rgb": {
    "r": 44,
    "g": 94,
    "b": 177
  },
  "hsl": {
    "h": 217.444,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.49334,
    "c": 0.14292,
    "h": 260
  },
  "luminance": 0.11715
}

Semantic roles & 50–950 ramp

primary
#2C5EB1
secondary
#C6A773
accent
#A844E3
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2C5EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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