#2C5FB9#2C5FB9

#2C5FB9 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.1% C 0.153 H 260.8°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#2C5FB9
RGBrgb(44, 95, 185)
HSLhsl(218, 62%, 45%)
HSVhsv(218, 76%, 73%)
CMYKcmyk(76.2%, 48.6%, 0%, 27.5%)
CIE-LABlab(41.57, 15.20, -52.45)
CIE-LCHlch(41.57, 54.61, 286.17°)
OKLaboklab(50.12% -0.0244 -0.1507)
OKLCHoklch(50.12% 0.153 260.8)
XYZxyz(13.8847, 12.2211, 47.5167)
Luminance0.1222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5FB9 #B9862C
analogous
#2CA5B9 #2C5FB9 #402CB9
triadic
#2C5FB9 #B92C5F #5FB92C
tetradic
#2C5FB9 #B92CA5 #B9862C #2CB940
square
#2C5FB9 #B92CA5 #B9862C #2CB940
split-complementary
#2C5FB9 #B9402C #A5B92C
monochromatic
#142C56 #204688 #2C5FB9 #4D7ED5 #7FA2E1

Accessibility & contrast

On white

6.10
#2C5FB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#2C5FB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5FB9
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5FB9#FFFFFF#000000##FFFFFF
##2C5FB91.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C69BC
Deuteranopia (green-blind)
#005CB7
Tritanopia (blue-blind)
#007483
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2c5fb9;
/* rgb */ color: rgb(44, 95, 185);
/* oklch */ color: oklch(50.1% 0.153 260.8);
Tailwind
colors: {
  custom: {
    50: '#798bcf',
    500: '#2c5fb9',
    950: '#000000',
  },
}
SCSS
$custom: #2c5fb9;
$custom-light: #798bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5fb9",
  "rgb": {
    "r": 44,
    "g": 95,
    "b": 185
  },
  "hsl": {
    "h": 218.298,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50122,
    "c": 0.15266,
    "h": 260.8
  },
  "luminance": 0.12223
}

Semantic roles & 50–950 ramp

primary
#2C5FB9
secondary
#C9AC78
accent
#AA43E5
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C14
muted
#7C7D82

Preview Lab

Preview with #2C5FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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