#2F74B8#2F74B8

#2F74B8 is a mid, vivid cyan. Relative luminance 0.166; OKLCH L 54.9% C 0.127 H 251.0°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#2F74B8
RGBrgb(47, 116, 184)
HSLhsl(210, 59%, 45%)
HSVhsv(210, 74%, 72%)
CMYKcmyk(74.5%, 37%, 0%, 27.8%)
CIE-LABlab(47.69, 1.92, -42.07)
CIE-LCHlch(47.69, 42.11, 272.61°)
OKLaboklab(54.88% -0.0412 -0.1198)
OKLCHoklch(54.88% 0.127 251)
XYZxyz(16.0662, 16.5540, 47.6866)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F74B8 #B8732F
analogous
#2FB8B7 #2F74B8 #2F30B8
triadic
#2F74B8 #B82F74 #74B82F
tetradic
#2F74B8 #B72FB8 #B8732F #30B82F
square
#2F74B8 #B72FB8 #B8732F #30B82F
split-complementary
#2F74B8 #B82F30 #B8B72F
monochromatic
#163757 #235587 #2F74B8 #5293D3 #82B1DF

Accessibility & contrast

On white

4.87
#2F74B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#2F74B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F74B8
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F74B8#FFFFFF#000000##FFFFFF
##2F74B81.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5578BB
Deuteranopia (green-blind)
#406BB7
Tritanopia (blue-blind)
#00848D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2f74b8;
/* rgb */ color: rgb(47, 116, 184);
/* oklch */ color: oklch(54.9% 0.127 251.0);
Tailwind
colors: {
  custom: {
    50: '#7a9bcd',
    500: '#2f74b8',
    950: '#000000',
  },
}
SCSS
$custom: #2f74b8;
$custom-light: #7a9bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f74b8",
  "rgb": {
    "r": 47,
    "g": 116,
    "b": 184
  },
  "hsl": {
    "h": 209.781,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.54882,
    "c": 0.12666,
    "h": 251
  },
  "luminance": 0.16556
}

Semantic roles & 50–950 ramp

primary
#2F74B8
secondary
#C8A17B
accent
#9345E2
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2F74B8

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

Preview Lab → · Contrast checker → · Palette generator →

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