#2F7AAA#2F7AAA

#2F7AAA is a mid, moderate cyan. Relative luminance 0.174; OKLCH L 55.5% C 0.104 H 240.6°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#2F7AAA
RGBrgb(47, 122, 170)
HSLhsl(203, 57%, 43%)
HSVhsv(203, 72%, 67%)
CMYKcmyk(72.4%, 28.2%, 0%, 33.3%)
CIE-LABlab(48.79, -6.77, -32.22)
CIE-LCHlch(48.79, 32.92, 258.12°)
OKLaboklab(55.52% -0.0512 -0.091)
OKLCHoklch(55.52% 0.104 240.6)
XYZxyz(15.3847, 17.4240, 40.5748)
Luminance0.1743 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7AAA #AA5F2F
analogous
#2FAA9D #2F7AAA #2F3CAA
triadic
#2F7AAA #AA2F7A #7AAA2F
tetradic
#2F7AAA #9D2FAA #AA5F2F #3CAA2F
square
#2F7AAA #9D2FAA #AA5F2F #3CAA2F
split-complementary
#2F7AAA #AA2F3C #AA9D2F
monochromatic
#14354A #22587A #2F7AAA #499ACD #79B4DA

Accessibility & contrast

On white

4.68
#2F7AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#2F7AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7AAA
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7AAA#FFFFFF#000000##FFFFFF
##2F7AAA1.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#647AAC
Deuteranopia (green-blind)
#536FA9
Tritanopia (blue-blind)
#00868B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2f7aaa;
/* rgb */ color: rgb(47, 122, 170);
/* oklch */ color: oklch(55.5% 0.104 240.6);
Tailwind
colors: {
  custom: {
    50: '#77a0c3',
    500: '#2f7aaa',
    950: '#000000',
  },
}
SCSS
$custom: #2f7aaa;
$custom-light: #77a0c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7aaa",
  "rgb": {
    "r": 47,
    "g": 122,
    "b": 170
  },
  "hsl": {
    "h": 203.415,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.55515,
    "c": 0.10437,
    "h": 240.6
  },
  "luminance": 0.17426
}

Semantic roles & 50–950 ramp

primary
#2F7AAA
secondary
#C29272
accent
#8348E0
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E12
muted
#7C7E81

Preview Lab

Preview with #2F7AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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