#1F7BD5#1F7BD5

#1F7BD5 is a mid, vivid cyan. Relative luminance 0.193; OKLCH L 57.9% C 0.161 H 252.6°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#1F7BD5
RGBrgb(31, 123, 213)
HSLhsl(210, 75%, 48%)
HSVhsv(210, 85%, 84%)
CMYKcmyk(85.4%, 42.3%, 0%, 16.5%)
CIE-LABlab(50.99, 6.92, -53.44)
CIE-LCHlch(50.99, 53.88, 277.38°)
OKLaboklab(57.88% -0.048 -0.1532)
OKLCHoklch(57.88% 0.161 252.6)
XYZxyz(19.6537, 19.2588, 65.6193)
Luminance0.1926 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7BD5 #D5791F
analogous
#1FD5D4 #1F7BD5 #1F20D5
triadic
#1F7BD5 #D51F7B #7BD51F
tetradic
#1F7BD5 #D41FD5 #D5791F #20D51F
square
#1F7BD5 #D41FD5 #D5791F #20D51F
split-complementary
#1F7BD5 #D51F20 #D5D41F
monochromatic
#0F3D6A #175CA0 #1F7BD5 #4C99E5 #82B8ED

Accessibility & contrast

On white

4.33
#1F7BD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#1F7BD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F7BD5
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7BD5#FFFFFF#000000##000000
##1F7BD51.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D82D9
Deuteranopia (green-blind)
#2B72D3
Tritanopia (blue-blind)
#00919D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #1f7bd5;
/* rgb */ color: rgb(31, 123, 213);
/* oklch */ color: oklch(57.9% 0.161 252.6);
Tailwind
colors: {
  custom: {
    50: '#7ba0e2',
    500: '#1f7bd5',
    950: '#000000',
  },
}
SCSS
$custom: #1f7bd5;
$custom-light: #7ba0e2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7bd5",
  "rgb": {
    "r": 31,
    "g": 123,
    "b": 213
  },
  "hsl": {
    "h": 209.67,
    "s": 74.59,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57878,
    "c": 0.16051,
    "h": 252.6
  },
  "luminance": 0.19261
}

Semantic roles & 50–950 ramp

primary
#1F7BD5
secondary
#D5A77A
accent
#9337F1
background
#F8F9FD
surface
#EFF2FB
border
#CACCD4
text
#0B0E15
muted
#7C7E83

Preview Lab

Preview with #1F7BD5

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

Preview Lab → · Contrast checker → · Palette generator →

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