#2C5BA8#2C5BA8

#2C5BA8 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.0% C 0.134 H 259.8°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#2C5BA8
RGBrgb(44, 91, 168)
HSLhsl(217, 58%, 42%)
HSVhsv(217, 74%, 66%)
CMYKcmyk(73.8%, 45.8%, 0%, 34.1%)
CIE-LABlab(39.32, 11.32, -46.06)
CIE-LCHlch(39.32, 47.43, 283.81°)
OKLaboklab(48.04% -0.0238 -0.132)
OKLCHoklch(48.04% 0.134 259.8)
XYZxyz(11.8451, 10.8435, 38.5069)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5BA8 #A8792C
analogous
#2C99A8 #2C5BA8 #3B2CA8
triadic
#2C5BA8 #A82C5B #5BA82C
tetradic
#2C5BA8 #A82C99 #A8792C #2CA83B
square
#2C5BA8 #A82C99 #A8792C #2CA83B
split-complementary
#2C5BA8 #A83B2C #99A82C
monochromatic
#132647 #1F4178 #2C5BA8 #4378CE #749BDB

Accessibility & contrast

On white

6.63
#2C5BA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#2C5BA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5BA8
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5BA8#FFFFFF#000000##FFFFFF
##2C5BA81.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3463AB
Deuteranopia (green-blind)
#1A57A6
Tritanopia (blue-blind)
#006D79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2c5ba8;
/* rgb */ color: rgb(44, 91, 168);
/* oklch */ color: oklch(48.0% 0.134 259.8);
Tailwind
colors: {
  custom: {
    50: '#7688c2',
    500: '#2c5ba8',
    950: '#000000',
  },
}
SCSS
$custom: #2c5ba8;
$custom-light: #7688c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5ba8",
  "rgb": {
    "r": 44,
    "g": 91,
    "b": 168
  },
  "hsl": {
    "h": 217.258,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48039,
    "c": 0.13409,
    "h": 259.8
  },
  "luminance": 0.10845
}

Semantic roles & 50–950 ramp

primary
#2C5BA8
secondary
#C2A26E
accent
#A746E2
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2C5BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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