#2F6FAB#2F6FAB

#2F6FAB is a mid, moderate cyan. Relative luminance 0.149; OKLCH L 52.9% C 0.115 H 249.7°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#2F6FAB
RGBrgb(47, 111, 171)
HSLhsl(209, 57%, 43%)
HSVhsv(209, 73%, 67%)
CMYKcmyk(72.5%, 35.1%, 0%, 32.9%)
CIE-LABlab(45.51, 0.20, -37.95)
CIE-LCHlch(45.51, 37.95, 270.30°)
OKLaboklab(52.95% -0.0399 -0.1078)
OKLCHoklch(52.95% 0.115 249.7)
XYZxyz(14.2047, 14.9119, 40.6498)
Luminance0.1491 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6FAB #AB6B2F
analogous
#2FABA9 #2F6FAB #2F31AB
triadic
#2F6FAB #AB2F6F #6FAB2F
tetradic
#2F6FAB #A92FAB #AB6B2F #31AB2F
square
#2F6FAB #A92FAB #AB6B2F #31AB2F
split-complementary
#2F6FAB #AB2F31 #ABA92F
monochromatic
#15314B #22507B #2F6FAB #4A8ECD #7AACDA

Accessibility & contrast

On white

5.27
#2F6FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#2F6FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6FAB
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6FAB#FFFFFF#000000##FFFFFF
##2F6FAB1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5472AE
Deuteranopia (green-blind)
#4266AA
Tritanopia (blue-blind)
#007D85
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f6fab;
/* rgb */ color: rgb(47, 111, 171);
/* oklch */ color: oklch(52.9% 0.115 249.7);
Tailwind
colors: {
  custom: {
    50: '#7798c4',
    500: '#2f6fab',
    950: '#000000',
  },
}
SCSS
$custom: #2f6fab;
$custom-light: #7798c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6fab",
  "rgb": {
    "r": 47,
    "g": 111,
    "b": 171
  },
  "hsl": {
    "h": 209.032,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.52947,
    "c": 0.11497,
    "h": 249.7
  },
  "luminance": 0.14913
}

Semantic roles & 50–950 ramp

primary
#2F6FAB
secondary
#C39A73
accent
#9148E0
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #2F6FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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