#2C5FAC#2C5FAC

#2C5FAC is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.2% C 0.135 H 258.6°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#2C5FAC
RGBrgb(44, 95, 172)
HSLhsl(216, 59%, 42%)
HSVhsv(216, 74%, 67%)
CMYKcmyk(74.4%, 44.8%, 0%, 32.5%)
CIE-LABlab(40.73, 10.25, -46.16)
CIE-LCHlch(40.73, 47.28, 282.51°)
OKLaboklab(49.21% -0.0266 -0.1322)
OKLCHoklch(49.21% 0.135 258.6)
XYZxyz(12.5746, 11.6971, 40.6168)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5FAC #AC792C
analogous
#2C9FAC #2C5FAC #392CAC
triadic
#2C5FAC #AC2C5F #5FAC2C
tetradic
#2C5FAC #AC2C9F #AC792C #2CAC39
square
#2C5FAC #AC2C9F #AC792C #2CAC39
split-complementary
#2C5FAC #AC392C #9FAC2C
monochromatic
#13294B #20447B #2C5FAC #467DD0 #769FDC

Accessibility & contrast

On white

6.29
#2C5FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#2C5FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5FAC
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5FAC#FFFFFF#000000##FFFFFF
##2C5FAC1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3866AF
Deuteranopia (green-blind)
#1F5BAA
Tritanopia (blue-blind)
#00717D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2c5fac;
/* rgb */ color: rgb(44, 95, 172);
/* oklch */ color: oklch(49.2% 0.135 258.6);
Tailwind
colors: {
  custom: {
    50: '#768bc5',
    500: '#2c5fac',
    950: '#000000',
  },
}
SCSS
$custom: #2c5fac;
$custom-light: #768bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5fac",
  "rgb": {
    "r": 44,
    "g": 95,
    "b": 172
  },
  "hsl": {
    "h": 216.094,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.49211,
    "c": 0.13483,
    "h": 258.6
  },
  "luminance": 0.11698
}

Semantic roles & 50–950 ramp

primary
#2C5FAC
secondary
#C4A270
accent
#A445E2
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2C5FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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