#2C5898#2C5898

#2C5898 is a mid, moderate blue. Relative luminance 0.098; OKLCH L 46.3% C 0.115 H 257.9°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#2C5898
RGBrgb(44, 88, 152)
HSLhsl(216, 55%, 38%)
HSVhsv(216, 71%, 60%)
CMYKcmyk(71.1%, 42.1%, 0%, 40.4%)
CIE-LABlab(37.45, 7.19, -39.49)
CIE-LCHlch(37.45, 40.14, 280.31°)
OKLaboklab(46.28% -0.0241 -0.1127)
OKLCHoklch(46.28% 0.115 257.9)
XYZxyz(10.1939, 9.7809, 31.0503)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5898 #986C2C
analogous
#2C8E98 #2C5898 #362C98
triadic
#2C5898 #982C58 #58982C
tetradic
#2C5898 #982C8E #986C2C #2C9836
square
#2C5898 #982C8E #986C2C #2C9836
split-complementary
#2C5898 #98362C #8E982C
monochromatic
#112139 #1E3D69 #2C5898 #3B74C6 #6A95D4

Accessibility & contrast

On white

7.10
#2C5898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2C5898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5898
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5898#FFFFFF#000000##FFFFFF
##2C58981.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5E9B
Deuteranopia (green-blind)
#285397
Tritanopia (blue-blind)
#006770
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2c5898;
/* rgb */ color: rgb(44, 88, 152);
/* oklch */ color: oklch(46.3% 0.115 257.9);
Tailwind
colors: {
  custom: {
    50: '#7286b7',
    500: '#2c5898',
    950: '#000000',
  },
}
SCSS
$custom: #2c5898;
$custom-light: #7286b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5898",
  "rgb": {
    "r": 44,
    "g": 88,
    "b": 152
  },
  "hsl": {
    "h": 215.556,
    "s": 55.102,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46275,
    "c": 0.11528,
    "h": 257.9
  },
  "luminance": 0.09782
}

Semantic roles & 50–950 ramp

primary
#2C5898
secondary
#BB9865
accent
#A249DE
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2C5898

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

Preview Lab → · Contrast checker → · Palette generator →

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