#2C5CAF#2C5CAF

#2C5CAF is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.8% C 0.143 H 260.5°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#2C5CAF
RGBrgb(44, 92, 175)
HSLhsl(218, 60%, 43%)
HSVhsv(218, 75%, 69%)
CMYKcmyk(74.9%, 47.4%, 0%, 31.4%)
CIE-LABlab(40.05, 13.34, -49.02)
CIE-LCHlch(40.05, 50.80, 285.22°)
OKLaboklab(48.75% -0.0234 -0.1406)
OKLCHoklch(48.75% 0.143 260.5)
XYZxyz(12.6009, 11.2835, 42.0630)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5CAF #AF7F2C
analogous
#2C9DAF #2C5CAF #3D2CAF
triadic
#2C5CAF #AF2C5C #5CAF2C
tetradic
#2C5CAF #AF2C9D #AF7F2C #2CAF3D
square
#2C5CAF #AF2C9D #AF7F2C #2CAF3D
split-complementary
#2C5CAF #AF3D2C #9DAF2C
monochromatic
#13294D #20427E #2C5CAF #477AD1 #789DDD

Accessibility & contrast

On white

6.45
#2C5CAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#2C5CAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5CAF
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5CAF#FFFFFF#000000##FFFFFF
##2C5CAF1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F65B2
Deuteranopia (green-blind)
#0C59AD
Tritanopia (blue-blind)
#00707D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2c5caf;
/* rgb */ color: rgb(44, 92, 175);
/* oklch */ color: oklch(48.8% 0.143 260.5);
Tailwind
colors: {
  custom: {
    50: '#7789c7',
    500: '#2c5caf',
    950: '#000000',
  },
}
SCSS
$custom: #2c5caf;
$custom-light: #7789c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5caf",
  "rgb": {
    "r": 44,
    "g": 92,
    "b": 175
  },
  "hsl": {
    "h": 218.015,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.48751,
    "c": 0.14258,
    "h": 260.5
  },
  "luminance": 0.11285
}

Semantic roles & 50–950 ramp

primary
#2C5CAF
secondary
#C5A772
accent
#A945E3
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2C5CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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