#2F70CC#2F70CC

#2F70CC is a mid, vivid blue. Relative luminance 0.166; OKLCH L 55.3% C 0.157 H 257.8°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#2F70CC
RGBrgb(47, 112, 204)
HSLhsl(215, 63%, 49%)
HSVhsv(215, 77%, 80%)
CMYKcmyk(77%, 45.1%, 0%, 20%)
CIE-LABlab(47.69, 11.88, -53.58)
CIE-LCHlch(47.69, 54.88, 282.50°)
OKLaboklab(55.25% -0.0333 -0.1537)
OKLCHoklch(55.25% 0.157 257.8)
XYZxyz(17.8615, 16.5502, 59.3682)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F70CC #CC8B2F
analogous
#2FBFCC #2F70CC #3C2FCC
triadic
#2F70CC #CC2F70 #70CC2F
tetradic
#2F70CC #CC2FBF #CC8B2F #2FCC3C
square
#2F70CC #CC2FBF #CC8B2F #2FCC3C
split-complementary
#2F70CC #CC3C2F #BFCC2F
monochromatic
#183969 #24559A #2F70CC #5E91DA #90B3E5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F70CC#FFFFFF#000000##FFFFFF
##2F70CC1.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)
#4079CF
Deuteranopia (green-blind)
#1D6ACA
Tritanopia (blue-blind)
#008694
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2f70cc;
/* rgb */ color: rgb(47, 112, 204);
/* oklch */ color: oklch(55.3% 0.157 257.8);
Tailwind
colors: {
  custom: {
    50: '#7e98dc',
    500: '#2f70cc',
    950: '#000000',
  },
}
SCSS
$custom: #2f70cc;
$custom-light: #7e98dc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f70cc",
  "rgb": {
    "r": 47,
    "g": 112,
    "b": 204
  },
  "hsl": {
    "h": 215.159,
    "s": 62.55,
    "l": 49.216
  },
  "oklch": {
    "l": 0.55251,
    "c": 0.15722,
    "h": 257.8
  },
  "luminance": 0.16552
}

Semantic roles & 50–950 ramp

primary
#2F70CC
secondary
#D0B287
accent
#A242E6
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #2F70CC

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

Preview Lab → · Contrast checker → · Palette generator →

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