#2F5E8B#2F5E8B

#2F5E8B is a mid, moderate cyan. Relative luminance 0.105; OKLCH L 47.0% C 0.090 H 249.4°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#2F5E8B
RGBrgb(47, 94, 139)
HSLhsl(209, 49%, 36%)
HSVhsv(209, 66%, 55%)
CMYKcmyk(66.2%, 32.4%, 0%, 45.5%)
CIE-LABlab(38.68, -0.96, -29.69)
CIE-LCHlch(38.68, 29.70, 268.15°)
OKLaboklab(47.04% -0.0316 -0.0839)
OKLCHoklch(47.04% 0.09 249.4)
XYZxyz(9.8335, 10.4729, 25.9243)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5E8B #8B5C2F
analogous
#2F8B8A #2F5E8B #2F308B
triadic
#2F5E8B #8B2F5E #5E8B2F
tetradic
#2F5E8B #8A2F8B #8B5C2F #308B2F
square
#2F5E8B #8A2F8B #8B5C2F #308B2F
split-complementary
#2F5E8B #8B2F30 #8B8A2F
monochromatic
#102030 #203F5D #2F5E8B #3E7DB9 #689BCC

Accessibility & contrast

On white

6.79
#2F5E8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2F5E8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5E8B
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5E8B#FFFFFF#000000##FFFFFF
##2F5E8B1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f5e8b;
/* rgb */ color: rgb(47, 94, 139);
/* oklch */ color: oklch(47.0% 0.090 249.4);
Tailwind
colors: {
  custom: {
    50: '#718bad',
    500: '#2f5e8b',
    950: '#000000',
  },
}
SCSS
$custom: #2f5e8b;
$custom-light: #718bad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5e8b",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 139
  },
  "hsl": {
    "h": 209.348,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.47037,
    "c": 0.08966,
    "h": 249.4
  },
  "luminance": 0.10474
}

Semantic roles & 50–950 ramp

primary
#2F5E8B
secondary
#B38A63
accent
#924FD9
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#080C10
muted
#7B7D7F

Preview Lab

Preview with #2F5E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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