#2F70D4#2F70D4

#2F70D4 is a mid, vivid blue. Relative luminance 0.169; OKLCH L 55.8% C 0.168 H 259.0°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#2F70D4
RGBrgb(47, 112, 212)
HSLhsl(216, 66%, 51%)
HSVhsv(216, 78%, 83%)
CMYKcmyk(77.8%, 47.2%, 0%, 16.9%)
CIE-LABlab(48.19, 14.88, -57.34)
CIE-LCHlch(48.19, 59.24, 284.55°)
OKLaboklab(55.8% -0.0319 -0.1647)
OKLCHoklch(55.8% 0.168 259)
XYZxyz(18.8458, 16.9439, 64.5518)
Luminance0.1695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F70D4 #D4932F
analogous
#2FC2D4 #2F70D4 #402FD4
triadic
#2F70D4 #D42F70 #70D42F
tetradic
#2F70D4 #D42FC2 #D4932F #2FD440
square
#2F70D4 #D42FC2 #D4932F #2FD440
split-complementary
#2F70D4 #D4402F #C2D42F
monochromatic
#173B71 #2255A4 #2F70D4 #6293DE #94B6E9

Accessibility & contrast

On white

4.78
#2F70D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#2F70D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F70D4
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F70D4#FFFFFF#000000##FFFFFF
##2F70D41.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#387AD8
Deuteranopia (green-blind)
#006BD2
Tritanopia (blue-blind)
#008898
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2f70d4;
/* rgb */ color: rgb(47, 112, 212);
/* oklch */ color: oklch(55.8% 0.168 259.0);
Tailwind
colors: {
  custom: {
    50: '#8098e2',
    500: '#2f70d4',
    950: '#000000',
  },
}
SCSS
$custom: #2f70d4;
$custom-light: #8098e2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f70d4",
  "rgb": {
    "r": 47,
    "g": 112,
    "b": 212
  },
  "hsl": {
    "h": 216.364,
    "s": 65.737,
    "l": 50.784
  },
  "oklch": {
    "l": 0.55799,
    "c": 0.16778,
    "h": 259
  },
  "luminance": 0.16946
}

Semantic roles & 50–950 ramp

primary
#2F70D4
secondary
#D4B78B
accent
#A63FE9
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #2F70D4

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

Preview Lab → · Contrast checker → · Palette generator →

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