#2D7BAB#2D7BAB

#2D7BAB is a mid, moderate cyan. Relative luminance 0.177; OKLCH L 55.7% C 0.106 H 239.9°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#2D7BAB
RGBrgb(45, 123, 171)
HSLhsl(203, 58%, 42%)
HSVhsv(203, 74%, 67%)
CMYKcmyk(73.7%, 28.1%, 0%, 32.9%)
CIE-LABlab(49.08, -7.29, -32.34)
CIE-LCHlch(49.08, 33.15, 257.30°)
OKLaboklab(55.75% -0.053 -0.0913)
OKLCHoklch(55.75% 0.106 239.9)
XYZxyz(15.5130, 17.6623, 41.1118)
Luminance0.1766 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7BAB #AB5D2D
analogous
#2DAB9C #2D7BAB #2D3CAB
triadic
#2D7BAB #AB2D7B #7BAB2D
tetradic
#2D7BAB #9C2DAB #AB5D2D #3CAB2D
square
#2D7BAB #9C2DAB #AB5D2D #3CAB2D
split-complementary
#2D7BAB #AB2D3C #AB9C2D
monochromatic
#14354A #20587B #2D7BAB #479BCE #77B5DB

Accessibility & contrast

On white

4.63
#2D7BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#2D7BAB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7BAB
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7BAB#FFFFFF#000000##FFFFFF
##2D7BAB1.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#657BAD
Deuteranopia (green-blind)
#536FAA
Tritanopia (blue-blind)
#00878C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2d7bab;
/* rgb */ color: rgb(45, 123, 171);
/* oklch */ color: oklch(55.7% 0.106 239.9);
Tailwind
colors: {
  custom: {
    50: '#77a1c4',
    500: '#2d7bab',
    950: '#000000',
  },
}
SCSS
$custom: #2d7bab;
$custom-light: #77a1c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7bab",
  "rgb": {
    "r": 45,
    "g": 123,
    "b": 171
  },
  "hsl": {
    "h": 202.857,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.55747,
    "c": 0.10559,
    "h": 239.9
  },
  "luminance": 0.17664
}

Semantic roles & 50–950 ramp

primary
#2D7BAB
secondary
#C39071
accent
#8146E2
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E12
muted
#7C7E81

Preview Lab

Preview with #2D7BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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