#2F5F8B#2F5F8B

#2F5F8B is a mid, moderate cyan. Relative luminance 0.107; OKLCH L 47.3% C 0.089 H 248.4°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#2F5F8B
RGBrgb(47, 95, 139)
HSLhsl(209, 49%, 36%)
HSVhsv(209, 66%, 55%)
CMYKcmyk(66.2%, 31.7%, 0%, 45.5%)
CIE-LABlab(38.99, -1.58, -29.20)
CIE-LCHlch(38.99, 29.24, 266.90°)
OKLaboklab(47.28% -0.0327 -0.0825)
OKLCHoklch(47.28% 0.089 248.4)
XYZxyz(9.9230, 10.6519, 25.9542)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5F8B #8B5B2F
analogous
#2F8B89 #2F5F8B #2F318B
triadic
#2F5F8B #8B2F5F #5F8B2F
tetradic
#2F5F8B #892F8B #8B5B2F #318B2F
square
#2F5F8B #892F8B #8B5B2F #318B2F
split-complementary
#2F5F8B #8B2F31 #8B892F
monochromatic
#102030 #20405D #2F5F8B #3E7EB9 #689CCC

Accessibility & contrast

On white

6.71
#2F5F8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#2F5F8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5F8B
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5F8B#FFFFFF#000000##FFFFFF
##2F5F8B1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C618D
Deuteranopia (green-blind)
#3F588A
Tritanopia (blue-blind)
#00696F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f5f8b;
/* rgb */ color: rgb(47, 95, 139);
/* oklch */ color: oklch(47.3% 0.089 248.4);
Tailwind
colors: {
  custom: {
    50: '#718cad',
    500: '#2f5f8b',
    950: '#000000',
  },
}
SCSS
$custom: #2f5f8b;
$custom-light: #718cad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5f8b",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 139
  },
  "hsl": {
    "h": 208.696,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4728,
    "c": 0.08873,
    "h": 248.4
  },
  "luminance": 0.10653
}

Semantic roles & 50–950 ramp

primary
#2F5F8B
secondary
#B38963
accent
#914FD9
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#080C10
muted
#7B7D7F

Preview Lab

Preview with #2F5F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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