#2C5B9F#2C5B9F

#2C5B9F is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.4% C 0.122 H 257.9°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#2C5B9F
RGBrgb(44, 91, 159)
HSLhsl(215, 57%, 40%)
HSVhsv(215, 72%, 62%)
CMYKcmyk(72.3%, 42.8%, 0%, 37.6%)
CIE-LABlab(38.76, 7.89, -41.60)
CIE-LCHlch(38.76, 42.34, 280.74°)
OKLaboklab(47.43% -0.0255 -0.1188)
OKLCHoklch(47.43% 0.122 257.9)
XYZxyz(11.0355, 10.5197, 34.2431)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5B9F #9F702C
analogous
#2C959F #2C5B9F #362C9F
triadic
#2C5B9F #9F2C5B #5B9F2C
tetradic
#2C5B9F #9F2C95 #9F702C #2C9F36
square
#2C5B9F #9F2C95 #9F702C #2C9F36
split-complementary
#2C5B9F #9F362C #959F2C
monochromatic
#11243F #1F406F #2C5B9F #3E77CA #6E99D7

Accessibility & contrast

On white

6.77
#2C5B9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#2C5B9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5B9F
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5B9F#FFFFFF#000000##FFFFFF
##2C5B9F1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A61A2
Deuteranopia (green-blind)
#27569E
Tritanopia (blue-blind)
#006B75
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2c5b9f;
/* rgb */ color: rgb(44, 91, 159);
/* oklch */ color: oklch(47.4% 0.122 257.9);
Tailwind
colors: {
  custom: {
    50: '#7488bc',
    500: '#2c5b9f',
    950: '#000000',
  },
}
SCSS
$custom: #2c5b9f;
$custom-light: #7488bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5b9f",
  "rgb": {
    "r": 44,
    "g": 91,
    "b": 159
  },
  "hsl": {
    "h": 215.478,
    "s": 56.65,
    "l": 39.804
  },
  "oklch": {
    "l": 0.47429,
    "c": 0.12155,
    "h": 257.9
  },
  "luminance": 0.10521
}

Semantic roles & 50–950 ramp

primary
#2C5B9F
secondary
#BE9B69
accent
#A248E0
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2C5B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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