#2C5FB5#2C5FB5

#2C5FB5 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 49.8% C 0.147 H 260.2°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#2C5FB5
RGBrgb(44, 95, 181)
HSLhsl(218, 61%, 44%)
HSVhsv(218, 76%, 71%)
CMYKcmyk(75.7%, 47.5%, 0%, 29%)
CIE-LABlab(41.30, 13.68, -50.53)
CIE-LCHlch(41.30, 52.35, 285.15°)
OKLaboklab(49.84% -0.025 -0.1451)
OKLCHoklch(49.84% 0.147 260.2)
XYZxyz(13.4684, 12.0546, 45.3240)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5FB5 #B5822C
analogous
#2CA4B5 #2C5FB5 #3D2CB5
triadic
#2C5FB5 #B52C5F #5FB52C
tetradic
#2C5FB5 #B52CA4 #B5822C #2CB53D
square
#2C5FB5 #B52CA4 #B5822C #2CB53D
split-complementary
#2C5FB5 #B53D2C #A4B52C
monochromatic
#142B53 #204584 #2C5FB5 #4B7ED3 #7CA1DF

Accessibility & contrast

On white

6.16
#2C5FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#2C5FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5FB5
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5FB5#FFFFFF#000000##FFFFFF
##2C5FB51.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3068B8
Deuteranopia (green-blind)
#085CB3
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2c5fb5;
/* rgb */ color: rgb(44, 95, 181);
/* oklch */ color: oklch(49.8% 0.147 260.2);
Tailwind
colors: {
  custom: {
    50: '#788bcc',
    500: '#2c5fb5',
    950: '#000000',
  },
}
SCSS
$custom: #2c5fb5;
$custom-light: #788bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5fb5",
  "rgb": {
    "r": 44,
    "g": 95,
    "b": 181
  },
  "hsl": {
    "h": 217.664,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49836,
    "c": 0.1472,
    "h": 260.2
  },
  "luminance": 0.12056
}

Semantic roles & 50–950 ramp

primary
#2C5FB5
secondary
#C8A975
accent
#A844E4
background
#F7F8FC
surface
#EEF0F9
border
#C9CBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2C5FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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