#1F5FA7#1F5FA7

#1F5FA7 is a mid, vivid cyan. Relative luminance 0.113; OKLCH L 48.4% C 0.132 H 254.3°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#1F5FA7
RGBrgb(31, 95, 167)
HSLhsl(212, 69%, 39%)
HSVhsv(212, 81%, 65%)
CMYKcmyk(81.4%, 43.1%, 0%, 34.5%)
CIE-LABlab(40.02, 6.75, -44.36)
CIE-LCHlch(40.02, 44.87, 278.65°)
OKLaboklab(48.45% -0.0357 -0.1271)
OKLCHoklch(48.45% 0.132 254.3)
XYZxyz(11.6297, 11.2643, 38.1130)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5FA7 #A7671F
analogous
#1FA3A7 #1F5FA7 #231FA7
triadic
#1F5FA7 #A71F5F #5FA71F
tetradic
#1F5FA7 #A71FA3 #A7671F #1FA723
square
#1F5FA7 #A71FA3 #A7671F #1FA723
split-complementary
#1F5FA7 #A7231F #A3A71F
monochromatic
#0C2440 #154273 #1F5FA7 #2B7DD8 #5F9CE1

Accessibility & contrast

On white

6.46
#1F5FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#1F5FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5FA7
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5FA7#FFFFFF#000000##FFFFFF
##1F5FA71.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B65AA
Deuteranopia (green-blind)
#2159A6
Tritanopia (blue-blind)
#00707B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #1f5fa7;
/* rgb */ color: rgb(31, 95, 167);
/* oklch */ color: oklch(48.4% 0.132 254.3);
Tailwind
colors: {
  custom: {
    50: '#718bc1',
    500: '#1f5fa7',
    950: '#000000',
  },
}
SCSS
$custom: #1f5fa7;
$custom-light: #718bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5fa7",
  "rgb": {
    "r": 31,
    "g": 95,
    "b": 167
  },
  "hsl": {
    "h": 211.765,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4845,
    "c": 0.13197,
    "h": 254.3
  },
  "luminance": 0.11266
}

Semantic roles & 50–950 ramp

primary
#1F5FA7
secondary
#C6945C
accent
#993CEC
background
#F7F8FB
surface
#EDF0F7
border
#C8CBD0
text
#090C12
muted
#7B7D81

Preview Lab

Preview with #1F5FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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