#2B5791#2B5791

#2B5791 is a mid, moderate cyan. Relative luminance 0.094; OKLCH L 45.5% C 0.107 H 256.2°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#2B5791
RGBrgb(43, 87, 145)
HSLhsl(214, 54%, 37%)
HSVhsv(214, 70%, 57%)
CMYKcmyk(70.3%, 40%, 0%, 43.1%)
CIE-LABlab(36.69, 5.02, -36.47)
CIE-LCHlch(36.69, 36.81, 277.84°)
OKLaboklab(45.55% -0.0255 -0.1039)
OKLCHoklch(45.55% 0.107 256.2)
XYZxyz(9.5134, 9.3733, 28.0904)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5791 #91652B
analogous
#2B8A91 #2B5791 #322B91
triadic
#2B5791 #912B57 #57912B
tetradic
#2B5791 #912B8A #91652B #2B9132
square
#2B5791 #912B8A #91652B #2B9132
split-complementary
#2B5791 #91322B #8A912B
monochromatic
#0F1E33 #1D3B62 #2B5791 #3973C0 #6594D1

Accessibility & contrast

On white

7.30
#2B5791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#2B5791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5791
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5791#FFFFFF#000000##FFFFFF
##2B57911.007.302.877.30
#FFFFFF7.301.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5B93
Deuteranopia (green-blind)
#2D5290
Tritanopia (blue-blind)
#00646D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2b5791;
/* rgb */ color: rgb(43, 87, 145);
/* oklch */ color: oklch(45.5% 0.107 256.2);
Tailwind
colors: {
  custom: {
    50: '#7186b1',
    500: '#2b5791',
    950: '#000000',
  },
}
SCSS
$custom: #2b5791;
$custom-light: #7186b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5791",
  "rgb": {
    "r": 43,
    "g": 87,
    "b": 145
  },
  "hsl": {
    "h": 214.118,
    "s": 54.255,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45545,
    "c": 0.10696,
    "h": 256.2
  },
  "luminance": 0.09374
}

Semantic roles & 50–950 ramp

primary
#2B5791
secondary
#B89260
accent
#9E4ADE
background
#F7F8FA
surface
#EDEFF5
border
#C8CACF
text
#080B11
muted
#7B7C80

Preview Lab

Preview with #2B5791

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

Preview Lab → · Contrast checker → · Palette generator →

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