#2D5786#2D5786

#2D5786 is a dark, moderate cyan. Relative luminance 0.091; OKLCH L 45.0% C 0.091 H 252.8°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#2D5786
RGBrgb(45, 87, 134)
HSLhsl(212, 50%, 35%)
HSVhsv(212, 66%, 53%)
CMYKcmyk(66.4%, 35.1%, 0%, 47.5%)
CIE-LABlab(36.17, 1.27, -30.61)
CIE-LCHlch(36.17, 30.63, 272.38°)
OKLaboklab(44.96% -0.0269 -0.0867)
OKLCHoklch(44.96% 0.091 252.8)
XYZxyz(8.7919, 9.0946, 23.8417)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5786 #865C2D
analogous
#2D8486 #2D5786 #2F2D86
triadic
#2D5786 #862D57 #57862D
tetradic
#2D5786 #862D84 #865C2D #2D862F
square
#2D5786 #862D84 #865C2D #2D862F
split-complementary
#2D5786 #862F2D #84862D
monochromatic
#0E1C2A #1E3958 #2D5786 #3C75B4 #6394CB

Accessibility & contrast

On white

7.45
#2D5786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#2D5786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5786
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5786#FFFFFF#000000##FFFFFF
##2D57861.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435A88
Deuteranopia (green-blind)
#365185
Tritanopia (blue-blind)
#006268
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2d5786;
/* rgb */ color: rgb(45, 87, 134);
/* oklch */ color: oklch(45.0% 0.091 252.8);
Tailwind
colors: {
  custom: {
    50: '#7086a9',
    500: '#2d5786',
    950: '#000000',
  },
}
SCSS
$custom: #2d5786;
$custom-light: #7086a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5786",
  "rgb": {
    "r": 45,
    "g": 87,
    "b": 134
  },
  "hsl": {
    "h": 211.685,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44957,
    "c": 0.09076,
    "h": 252.8
  },
  "luminance": 0.09096
}

Semantic roles & 50–950 ramp

primary
#2D5786
secondary
#B18A5E
accent
#984FD9
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #2D5786

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

Preview Lab → · Contrast checker → · Palette generator →

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