#2C5DAB#2C5DAB

#2C5DAB is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.7% C 0.136 H 259.4°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#2C5DAB
RGBrgb(44, 93, 171)
HSLhsl(217, 59%, 42%)
HSVhsv(217, 74%, 67%)
CMYKcmyk(74.3%, 45.6%, 0%, 32.9%)
CIE-LABlab(40.09, 11.16, -46.60)
CIE-LCHlch(40.09, 47.92, 283.47°)
OKLaboklab(48.69% -0.025 -0.1335)
OKLCHoklch(48.69% 0.136 259.4)
XYZxyz(12.3011, 11.3031, 40.0536)
Luminance0.1130 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5DAB #AB7A2C
analogous
#2C9DAB #2C5DAB #3A2CAB
triadic
#2C5DAB #AB2C5D #5DAB2C
tetradic
#2C5DAB #AB2C9D #AB7A2C #2CAB3A
square
#2C5DAB #AB2C9D #AB7A2C #2CAB3A
split-complementary
#2C5DAB #AB3A2C #9DAB2C
monochromatic
#13284A #1F437A #2C5DAB #457ACF #769DDC

Accessibility & contrast

On white

6.44
#2C5DAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2C5DAB
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5DAB#FFFFFF#000000##FFFFFF
##2C5DAB1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3565AE
Deuteranopia (green-blind)
#1A59A9
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2c5dab;
/* rgb */ color: rgb(44, 93, 171);
/* oklch */ color: oklch(48.7% 0.136 259.4);
Tailwind
colors: {
  custom: {
    50: '#768ac4',
    500: '#2c5dab',
    950: '#000000',
  },
}
SCSS
$custom: #2c5dab;
$custom-light: #768ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5dab",
  "rgb": {
    "r": 44,
    "g": 93,
    "b": 171
  },
  "hsl": {
    "h": 216.85,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48694,
    "c": 0.13584,
    "h": 259.4
  },
  "luminance": 0.11304
}

Semantic roles & 50–950 ramp

primary
#2C5DAB
secondary
#C3A36F
accent
#A646E2
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2C5DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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