#2F5F8A#2F5F8A

#2F5F8A is a mid, moderate cyan. Relative luminance 0.106; OKLCH L 47.2% C 0.087 H 247.8°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#2F5F8A
RGBrgb(47, 95, 138)
HSLhsl(208, 49%, 36%)
HSVhsv(208, 66%, 54%)
CMYKcmyk(65.9%, 31.2%, 0%, 45.9%)
CIE-LABlab(38.94, -1.94, -28.67)
CIE-LCHlch(38.94, 28.74, 266.12°)
OKLaboklab(47.22% -0.033 -0.0809)
OKLCHoklch(47.22% 0.087 247.8)
XYZxyz(9.8502, 10.6228, 25.5711)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5F8A #8A5A2F
analogous
#2F8A88 #2F5F8A #2F328A
triadic
#2F5F8A #8A2F5F #5F8A2F
tetradic
#2F5F8A #882F8A #8A5A2F #328A2F
square
#2F5F8A #882F8A #8A5A2F #328A2F
split-complementary
#2F5F8A #8A2F32 #8A882F
monochromatic
#10202F #1F405C #2F5F8A #3F7EB8 #689CCC

Accessibility & contrast

On white

6.72
#2F5F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F5F8A
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5F8A#FFFFFF#000000##FFFFFF
##2F5F8A1.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C618C
Deuteranopia (green-blind)
#405889
Tritanopia (blue-blind)
#00696E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f5f8a;
/* rgb */ color: rgb(47, 95, 138);
/* oklch */ color: oklch(47.2% 0.087 247.8);
Tailwind
colors: {
  custom: {
    50: '#718cac',
    500: '#2f5f8a',
    950: '#000000',
  },
}
SCSS
$custom: #2f5f8a;
$custom-light: #718cac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5f8a",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 138
  },
  "hsl": {
    "h": 208.352,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47224,
    "c": 0.08743,
    "h": 247.8
  },
  "luminance": 0.10624
}

Semantic roles & 50–950 ramp

primary
#2F5F8A
secondary
#B38862
accent
#904FD9
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#080C10
muted
#7B7D7F

Preview Lab

Preview with #2F5F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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