#2C70D1#2C70D1

#2C70D1 is a mid, vivid blue. Relative luminance 0.167; OKLCH L 55.5% C 0.165 H 258.0°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#2C70D1
RGBrgb(44, 112, 209)
HSLhsl(215, 65%, 50%)
HSVhsv(215, 79%, 82%)
CMYKcmyk(78.9%, 46.4%, 0%, 18%)
CIE-LABlab(47.91, 13.43, -56.09)
CIE-LCHlch(47.91, 57.67, 283.47°)
OKLaboklab(55.5% -0.0342 -0.1611)
OKLCHoklch(55.5% 0.165 258)
XYZxyz(18.3373, 16.7251, 62.5710)
Luminance0.1673 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C70D1 #D18D2C
analogous
#2CC2D1 #2C70D1 #3B2CD1
triadic
#2C70D1 #D12C70 #70D12C
tetradic
#2C70D1 #D12CC2 #D18D2C #2CD13B
square
#2C70D1 #D12CC2 #D18D2C #2CD13B
split-complementary
#2C70D1 #D13B2C #C2D12C
monochromatic
#173A6C #21559E #2C70D1 #5D92DD #90B4E8

Accessibility & contrast

On white

4.83
#2C70D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#2C70D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C70D1
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C70D1#FFFFFF#000000##FFFFFF
##2C70D11.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B7AD5
Deuteranopia (green-blind)
#0B6BCF
Tritanopia (blue-blind)
#008796
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2c70d1;
/* rgb */ color: rgb(44, 112, 209);
/* oklch */ color: oklch(55.5% 0.165 258.0);
Tailwind
colors: {
  custom: {
    50: '#7e98e0',
    500: '#2c70d1',
    950: '#000000',
  },
}
SCSS
$custom: #2c70d1;
$custom-light: #7e98e0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c70d1",
  "rgb": {
    "r": 44,
    "g": 112,
    "b": 209
  },
  "hsl": {
    "h": 215.273,
    "s": 65.217,
    "l": 49.608
  },
  "oklch": {
    "l": 0.55499,
    "c": 0.16464,
    "h": 258
  },
  "luminance": 0.16727
}

Semantic roles & 50–950 ramp

primary
#2C70D1
secondary
#D2B387
accent
#A340E8
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #2C70D1

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

Preview Lab → · Contrast checker → · Palette generator →

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