#2B5178#2B5178

#2B5178 is a dark, moderate cyan. Relative luminance 0.078; OKLCH L 42.6% C 0.078 H 250.7°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#2B5178
RGBrgb(43, 81, 120)
HSLhsl(210, 47%, 32%)
HSVhsv(210, 64%, 47%)
CMYKcmyk(64.2%, 32.5%, 0%, 52.9%)
CIE-LABlab(33.46, -0.41, -26.23)
CIE-LCHlch(33.46, 26.24, 269.11°)
OKLaboklab(42.57% -0.0259 -0.0741)
OKLCHoklch(42.57% 0.078 250.7)
XYZxyz(7.3276, 7.7538, 18.8761)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5178 #78522B
analogous
#2B7878 #2B5178 #2C2B78
triadic
#2B5178 #782B51 #51782B
tetradic
#2B5178 #782B78 #78522B #2B782C
square
#2B5178 #782B78 #78522B #2B782C
split-complementary
#2B5178 #782C2B #78782B
monochromatic
#0B141E #1B334B #2B5178 #3B6FA5 #5A8EC4

Accessibility & contrast

On white

8.23
#2B5178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2B5178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5178
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5178#FFFFFF#000000##FFFFFF
##2B51781.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40537A
Deuteranopia (green-blind)
#364B77
Tritanopia (blue-blind)
#005A5F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2b5178;
/* rgb */ color: rgb(43, 81, 120);
/* oklch */ color: oklch(42.6% 0.078 250.7);
Tailwind
colors: {
  custom: {
    50: '#6c819f',
    500: '#2b5178',
    950: '#000000',
  },
}
SCSS
$custom: #2b5178;
$custom-light: #6c819f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5178",
  "rgb": {
    "r": 43,
    "g": 81,
    "b": 120
  },
  "hsl": {
    "h": 210.39,
    "s": 47.239,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42574,
    "c": 0.07847,
    "h": 250.7
  },
  "luminance": 0.07755
}

Semantic roles & 50–950 ramp

primary
#2B5178
secondary
#AA8055
accent
#9551D7
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #2B5178

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

Preview Lab → · Contrast checker → · Palette generator →

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