#1F5FA6#1F5FA6

#1F5FA6 is a mid, vivid cyan. Relative luminance 0.112; OKLCH L 48.4% C 0.131 H 254.1°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#1F5FA6
RGBrgb(31, 95, 166)
HSLhsl(212, 69%, 39%)
HSVhsv(212, 81%, 65%)
CMYKcmyk(81.3%, 42.8%, 0%, 34.9%)
CIE-LABlab(39.96, 6.36, -43.87)
CIE-LCHlch(39.96, 44.32, 278.25°)
OKLaboklab(48.38% -0.0359 -0.1256)
OKLCHoklch(48.38% 0.131 254.1)
XYZxyz(11.5376, 11.2275, 37.6280)
Luminance0.1123 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5FA6 #A6661F
analogous
#1FA2A6 #1F5FA6 #231FA6
triadic
#1F5FA6 #A61F5F #5FA61F
tetradic
#1F5FA6 #A61FA2 #A6661F #1FA623
square
#1F5FA6 #A61FA2 #A6661F #1FA623
split-complementary
#1F5FA6 #A6231F #A2A61F
monochromatic
#0C243F #154172 #1F5FA6 #2B7DD7 #5E9CE1

Accessibility & contrast

On white

6.47
#1F5FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F5FA6
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5FA6#FFFFFF#000000##FFFFFF
##1F5FA61.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B65A9
Deuteranopia (green-blind)
#2359A5
Tritanopia (blue-blind)
#00707A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #1f5fa6;
/* rgb */ color: rgb(31, 95, 166);
/* oklch */ color: oklch(48.4% 0.131 254.1);
Tailwind
colors: {
  custom: {
    50: '#718bc1',
    500: '#1f5fa6',
    950: '#000000',
  },
}
SCSS
$custom: #1f5fa6;
$custom-light: #718bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5fa6",
  "rgb": {
    "r": 31,
    "g": 95,
    "b": 166
  },
  "hsl": {
    "h": 211.556,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.48382,
    "c": 0.13063,
    "h": 254.1
  },
  "luminance": 0.11229
}

Semantic roles & 50–950 ramp

primary
#1F5FA6
secondary
#C5935B
accent
#983CEB
background
#F7F8FB
surface
#EDF0F7
border
#C8CBD0
text
#090C12
muted
#7B7D81

Preview Lab

Preview with #1F5FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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