#2D5F8A#2D5F8A

#2D5F8A is a mid, moderate cyan. Relative luminance 0.106; OKLCH L 47.1% C 0.088 H 247.0°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#2D5F8A
RGBrgb(45, 95, 138)
HSLhsl(208, 51%, 36%)
HSVhsv(208, 67%, 54%)
CMYKcmyk(67.4%, 31.2%, 0%, 45.9%)
CIE-LABlab(38.86, -2.31, -28.81)
CIE-LCHlch(38.86, 28.90, 265.41°)
OKLaboklab(47.14% -0.0345 -0.0814)
OKLCHoklch(47.14% 0.088 247)
XYZxyz(9.7601, 10.5763, 25.5669)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5F8A #8A582D
analogous
#2D8A86 #2D5F8A #2D308A
triadic
#2D5F8A #8A2D5F #5F8A2D
tetradic
#2D5F8A #862D8A #8A582D #308A2D
square
#2D5F8A #862D8A #8A582D #308A2D
split-complementary
#2D5F8A #8A2D30 #8A862D
monochromatic
#0F1F2E #1E3F5C #2D5F8A #3C7FB8 #659DCD

Accessibility & contrast

On white

6.74
#2D5F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#2D5F8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5F8A
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5F8A#FFFFFF#000000##FFFFFF
##2D5F8A1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C608C
Deuteranopia (green-blind)
#3F5789
Tritanopia (blue-blind)
#00696E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2d5f8a;
/* rgb */ color: rgb(45, 95, 138);
/* oklch */ color: oklch(47.1% 0.088 247.0);
Tailwind
colors: {
  custom: {
    50: '#708cac',
    500: '#2d5f8a',
    950: '#000000',
  },
}
SCSS
$custom: #2d5f8a;
$custom-light: #708cac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5f8a",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 138
  },
  "hsl": {
    "h": 207.742,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.47139,
    "c": 0.08839,
    "h": 247
  },
  "luminance": 0.10577
}

Semantic roles & 50–950 ramp

primary
#2D5F8A
secondary
#B38660
accent
#8F4DDA
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#080C10
muted
#7B7D7F

Preview Lab

Preview with #2D5F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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