#2C5FAB#2C5FAB

#2C5FAB is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.1% C 0.133 H 258.4°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#2C5FAB
RGBrgb(44, 95, 171)
HSLhsl(216, 59%, 42%)
HSVhsv(216, 74%, 67%)
CMYKcmyk(74.3%, 44.4%, 0%, 32.9%)
CIE-LABlab(40.67, 9.86, -45.67)
CIE-LCHlch(40.67, 46.72, 282.19°)
OKLaboklab(49.14% -0.0268 -0.1307)
OKLCHoklch(49.14% 0.133 258.4)
XYZxyz(12.4789, 11.6588, 40.1129)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5FAB #AB782C
analogous
#2C9EAB #2C5FAB #392CAB
triadic
#2C5FAB #AB2C5F #5FAB2C
tetradic
#2C5FAB #AB2C9E #AB782C #2CAB39
square
#2C5FAB #AB2C9E #AB782C #2CAB39
split-complementary
#2C5FAB #AB392C #9EAB2C
monochromatic
#13294A #1F447A #2C5FAB #457DCF #769FDC

Accessibility & contrast

On white

6.30
#2C5FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#2C5FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5FAB
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5FAB#FFFFFF#000000##FFFFFF
##2C5FAB1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3966AE
Deuteranopia (green-blind)
#215AA9
Tritanopia (blue-blind)
#00717C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2c5fab;
/* rgb */ color: rgb(44, 95, 171);
/* oklch */ color: oklch(49.1% 0.133 258.4);
Tailwind
colors: {
  custom: {
    50: '#768bc4',
    500: '#2c5fab',
    950: '#000000',
  },
}
SCSS
$custom: #2c5fab;
$custom-light: #768bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5fab",
  "rgb": {
    "r": 44,
    "g": 95,
    "b": 171
  },
  "hsl": {
    "h": 215.906,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49143,
    "c": 0.13346,
    "h": 258.4
  },
  "luminance": 0.1166
}

Semantic roles & 50–950 ramp

primary
#2C5FAB
secondary
#C3A26F
accent
#A346E2
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2C5FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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