#2C5FA8#2C5FA8

#2C5FA8 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 48.9% C 0.129 H 257.8°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#2C5FA8
RGBrgb(44, 95, 168)
HSLhsl(215, 58%, 42%)
HSVhsv(215, 74%, 66%)
CMYKcmyk(73.8%, 43.5%, 0%, 34.1%)
CIE-LABlab(40.48, 8.72, -44.19)
CIE-LCHlch(40.48, 45.04, 281.17°)
OKLaboklab(48.94% -0.0274 -0.1264)
OKLCHoklch(48.94% 0.129 257.8)
XYZxyz(12.1962, 11.5457, 38.6240)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5FA8 #A8752C
analogous
#2C9DA8 #2C5FA8 #372CA8
triadic
#2C5FA8 #A82C5F #5FA82C
tetradic
#2C5FA8 #A82C9D #A8752C #2CA837
square
#2C5FA8 #A82C9D #A8752C #2CA837
split-complementary
#2C5FA8 #A8372C #9DA82C
monochromatic
#132847 #1F4478 #2C5FA8 #437CCE #749EDB

Accessibility & contrast

On white

6.35
#2C5FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#2C5FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5FA8
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5FA8#FFFFFF#000000##FFFFFF
##2C5FA81.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B66AB
Deuteranopia (green-blind)
#255AA7
Tritanopia (blue-blind)
#00707B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2c5fa8;
/* rgb */ color: rgb(44, 95, 168);
/* oklch */ color: oklch(48.9% 0.129 257.8);
Tailwind
colors: {
  custom: {
    50: '#768bc2',
    500: '#2c5fa8',
    950: '#000000',
  },
}
SCSS
$custom: #2c5fa8;
$custom-light: #768bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5fa8",
  "rgb": {
    "r": 44,
    "g": 95,
    "b": 168
  },
  "hsl": {
    "h": 215.323,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48942,
    "c": 0.12933,
    "h": 257.8
  },
  "luminance": 0.11547
}

Semantic roles & 50–950 ramp

primary
#2C5FA8
secondary
#C29F6E
accent
#A246E2
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #2C5FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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