#2F70AB#2F70AB

#2F70AB is a mid, moderate cyan. Relative luminance 0.151; OKLCH L 53.2% C 0.114 H 249.0°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#2F70AB
RGBrgb(47, 112, 171)
HSLhsl(209, 57%, 43%)
HSVhsv(209, 73%, 67%)
CMYKcmyk(72.5%, 34.5%, 0%, 32.9%)
CIE-LABlab(45.81, -0.42, -37.48)
CIE-LCHlch(45.81, 37.48, 269.36°)
OKLaboklab(53.18% -0.0409 -0.1064)
OKLCHoklch(53.18% 0.114 249)
XYZxyz(14.3144, 15.1314, 40.6864)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F70AB #AB6A2F
analogous
#2FABA8 #2F70AB #2F32AB
triadic
#2F70AB #AB2F70 #70AB2F
tetradic
#2F70AB #A82FAB #AB6A2F #32AB2F
square
#2F70AB #A82FAB #AB6A2F #32AB2F
split-complementary
#2F70AB #AB2F32 #ABA82F
monochromatic
#15314B #22517B #2F70AB #4A8FCD #7AADDA

Accessibility & contrast

On white

5.22
#2F70AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#2F70AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F70AB
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F70AB#FFFFFF#000000##FFFFFF
##2F70AB1.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5573AD
Deuteranopia (green-blind)
#4467AA
Tritanopia (blue-blind)
#007E85
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f70ab;
/* rgb */ color: rgb(47, 112, 171);
/* oklch */ color: oklch(53.2% 0.114 249.0);
Tailwind
colors: {
  custom: {
    50: '#7798c4',
    500: '#2f70ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f70ab;
$custom-light: #7798c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f70ab",
  "rgb": {
    "r": 47,
    "g": 112,
    "b": 171
  },
  "hsl": {
    "h": 208.548,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53183,
    "c": 0.114,
    "h": 249
  },
  "luminance": 0.15133
}

Semantic roles & 50–950 ramp

primary
#2F70AB
secondary
#C39973
accent
#9048E0
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #2F70AB

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

Preview Lab → · Contrast checker → · Palette generator →

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