#1F70A5#1F70A5

#1F70A5 is a mid, moderate cyan. Relative luminance 0.146; OKLCH L 52.4% C 0.112 H 242.8°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#1F70A5
RGBrgb(31, 112, 165)
HSLhsl(204, 68%, 38%)
HSVhsv(204, 81%, 65%)
CMYKcmyk(81.2%, 32.1%, 0%, 35.3%)
CIE-LABlab(45.07, -4.66, -35.16)
CIE-LCHlch(45.07, 35.47, 262.45°)
OKLaboklab(52.38% -0.0513 -0.0998)
OKLCHoklch(52.38% 0.112 242.8)
XYZxyz(13.1481, 14.5946, 37.7141)
Luminance0.1460 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F70A5 #A5541F
analogous
#1FA597 #1F70A5 #1F2DA5
triadic
#1F70A5 #A51F70 #70A51F
tetradic
#1F70A5 #971FA5 #A5541F #2DA51F
square
#1F70A5 #971FA5 #A5541F #2DA51F
split-complementary
#1F70A5 #A51F2D #A5971F
monochromatic
#0C2A3E #154D71 #1F70A5 #2A93D7 #5EADE1

Accessibility & contrast

On white

5.36
#1F70A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#1F70A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F70A5
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F70A5#FFFFFF#000000##FFFFFF
##1F70A51.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5771A7
Deuteranopia (green-blind)
#4565A4
Tritanopia (blue-blind)
#007D83
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #1f70a5;
/* rgb */ color: rgb(31, 112, 165);
/* oklch */ color: oklch(52.4% 0.112 242.8);
Tailwind
colors: {
  custom: {
    50: '#7198c0',
    500: '#1f70a5',
    950: '#000000',
  },
}
SCSS
$custom: #1f70a5;
$custom-light: #7198c0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f70a5",
  "rgb": {
    "r": 31,
    "g": 112,
    "b": 165
  },
  "hsl": {
    "h": 203.731,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.52377,
    "c": 0.11221,
    "h": 242.8
  },
  "luminance": 0.14596
}

Semantic roles & 50–950 ramp

primary
#1F70A5
secondary
#C5855B
accent
#823DEB
background
#F7F9FB
surface
#EDF2F7
border
#C8CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #1F70A5

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

Preview Lab → · Contrast checker → · Palette generator →

#1F70A5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva