#2C5BAF#2C5BAF

#2C5BAF is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.5% C 0.144 H 261.0°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#2C5BAF
RGBrgb(44, 91, 175)
HSLhsl(218, 60%, 43%)
HSVhsv(218, 75%, 69%)
CMYKcmyk(74.9%, 48%, 0%, 31.4%)
CIE-LABlab(39.77, 13.99, -49.48)
CIE-LCHlch(39.77, 51.42, 285.79°)
OKLaboklab(48.53% -0.0226 -0.142)
OKLCHoklch(48.53% 0.144 261)
XYZxyz(12.5149, 11.1114, 42.0343)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5BAF #AF802C
analogous
#2C9CAF #2C5BAF #3E2CAF
triadic
#2C5BAF #AF2C5B #5BAF2C
tetradic
#2C5BAF #AF2C9C #AF802C #2CAF3E
square
#2C5BAF #AF2C9C #AF802C #2CAF3E
split-complementary
#2C5BAF #AF3E2C #9CAF2C
monochromatic
#13284D #20427E #2C5BAF #4779D1 #789CDD

Accessibility & contrast

On white

6.52
#2C5BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#2C5BAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5BAF
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5BAF#FFFFFF#000000##FFFFFF
##2C5BAF1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D64B2
Deuteranopia (green-blind)
#0558AD
Tritanopia (blue-blind)
#006F7C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2c5baf;
/* rgb */ color: rgb(44, 91, 175);
/* oklch */ color: oklch(48.5% 0.144 261.0);
Tailwind
colors: {
  custom: {
    50: '#7788c7',
    500: '#2c5baf',
    950: '#000000',
  },
}
SCSS
$custom: #2c5baf;
$custom-light: #7788c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5baf",
  "rgb": {
    "r": 44,
    "g": 91,
    "b": 175
  },
  "hsl": {
    "h": 218.473,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.48531,
    "c": 0.1438,
    "h": 261
  },
  "luminance": 0.11113
}

Semantic roles & 50–950 ramp

primary
#2C5BAF
secondary
#C5A772
accent
#AA45E3
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2C5BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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