#2C5FB2#2C5FB2

#2C5FB2 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.6% C 0.143 H 259.7°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#2C5FB2
RGBrgb(44, 95, 178)
HSLhsl(217, 60%, 44%)
HSVhsv(217, 75%, 70%)
CMYKcmyk(75.3%, 46.6%, 0%, 30.2%)
CIE-LABlab(41.11, 12.53, -49.09)
CIE-LCHlch(41.11, 50.66, 284.32°)
OKLaboklab(49.63% -0.0255 -0.1408)
OKLCHoklch(49.63% 0.143 259.7)
XYZxyz(13.1639, 11.9328, 43.7203)
Luminance0.1193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5FB2 #B27F2C
analogous
#2CA2B2 #2C5FB2 #3C2CB2
triadic
#2C5FB2 #B22C5F #5FB22C
tetradic
#2C5FB2 #B22CA2 #B27F2C #2CB23C
square
#2C5FB2 #B22CA2 #B27F2C #2CB23C
split-complementary
#2C5FB2 #B23C2C #A2B22C
monochromatic
#142B50 #204581 #2C5FB2 #497DD2 #7AA0DE

Accessibility & contrast

On white

6.20
#2C5FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#2C5FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5FB2
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5FB2#FFFFFF#000000##FFFFFF
##2C5FB21.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3368B5
Deuteranopia (green-blind)
#125BB0
Tritanopia (blue-blind)
#007380
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2c5fb2;
/* rgb */ color: rgb(44, 95, 178);
/* oklch */ color: oklch(49.6% 0.143 259.7);
Tailwind
colors: {
  custom: {
    50: '#788bc9',
    500: '#2c5fb2',
    950: '#000000',
  },
}
SCSS
$custom: #2c5fb2;
$custom-light: #788bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5fb2",
  "rgb": {
    "r": 44,
    "g": 95,
    "b": 178
  },
  "hsl": {
    "h": 217.164,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.49625,
    "c": 0.14309,
    "h": 259.7
  },
  "luminance": 0.11934
}

Semantic roles & 50–950 ramp

primary
#2C5FB2
secondary
#C6A773
accent
#A744E4
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2C5FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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