#2C5FA7#2C5FA7

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

Color values

HEX#2C5FA7
RGBrgb(44, 95, 167)
HSLhsl(215, 58%, 41%)
HSVhsv(215, 74%, 65%)
CMYKcmyk(73.7%, 43.1%, 0%, 34.5%)
CIE-LABlab(40.42, 8.34, -43.70)
CIE-LCHlch(40.42, 44.48, 280.81°)
OKLaboklab(48.88% -0.0276 -0.1249)
OKLCHoklch(48.88% 0.128 257.5)
XYZxyz(12.1034, 11.5086, 38.1352)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5FA7 #A7742C
analogous
#2C9DA7 #2C5FA7 #372CA7
triadic
#2C5FA7 #A72C5F #5FA72C
tetradic
#2C5FA7 #A72C9D #A7742C #2CA737
square
#2C5FA7 #A72C9D #A7742C #2CA737
split-complementary
#2C5FA7 #A7372C #9DA72C
monochromatic
#122846 #1F4377 #2C5FA7 #437CCD #739EDA

Accessibility & contrast

On white

6.36
#2C5FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#2C5FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5FA7
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5FA7#FFFFFF#000000##FFFFFF
##2C5FA71.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C65AA
Deuteranopia (green-blind)
#265AA6
Tritanopia (blue-blind)
#00707B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2c5fa7;
/* rgb */ color: rgb(44, 95, 167);
/* oklch */ color: oklch(48.9% 0.128 257.5);
Tailwind
colors: {
  custom: {
    50: '#758bc1',
    500: '#2c5fa7',
    950: '#000000',
  },
}
SCSS
$custom: #2c5fa7;
$custom-light: #758bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5fa7",
  "rgb": {
    "r": 44,
    "g": 95,
    "b": 167
  },
  "hsl": {
    "h": 215.122,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48875,
    "c": 0.12796,
    "h": 257.5
  },
  "luminance": 0.1151
}

Semantic roles & 50–950 ramp

primary
#2C5FA7
secondary
#C29F6D
accent
#A146E2
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #2C5FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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