#1F5FA8#1F5FA8

#1F5FA8 is a mid, vivid cyan. Relative luminance 0.113; OKLCH L 48.5% C 0.133 H 254.6°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#1F5FA8
RGBrgb(31, 95, 168)
HSLhsl(212, 69%, 39%)
HSVhsv(212, 82%, 66%)
CMYKcmyk(81.5%, 43.5%, 0%, 34.1%)
CIE-LABlab(40.08, 7.14, -44.85)
CIE-LCHlch(40.08, 45.42, 279.05°)
OKLaboklab(48.52% -0.0354 -0.1285)
OKLCHoklch(48.52% 0.133 254.6)
XYZxyz(11.7225, 11.3015, 38.6018)
Luminance0.1130 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5FA8 #A8681F
analogous
#1FA4A8 #1F5FA8 #241FA8
triadic
#1F5FA8 #A81F5F #5FA81F
tetradic
#1F5FA8 #A81FA4 #A8681F #1FA824
square
#1F5FA8 #A81FA4 #A8681F #1FA824
split-complementary
#1F5FA8 #A8241F #A4A81F
monochromatic
#0C2541 #154274 #1F5FA8 #2C7CD8 #609CE2

Accessibility & contrast

On white

6.44
#1F5FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#1F5FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5FA8
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5FA8#FFFFFF#000000##FFFFFF
##1F5FA81.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A65AB
Deuteranopia (green-blind)
#2059A7
Tritanopia (blue-blind)
#00707B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #1f5fa8;
/* rgb */ color: rgb(31, 95, 168);
/* oklch */ color: oklch(48.5% 0.133 254.6);
Tailwind
colors: {
  custom: {
    50: '#718bc2',
    500: '#1f5fa8',
    950: '#000000',
  },
}
SCSS
$custom: #1f5fa8;
$custom-light: #718bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5fa8",
  "rgb": {
    "r": 31,
    "g": 95,
    "b": 168
  },
  "hsl": {
    "h": 211.971,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48517,
    "c": 0.13331,
    "h": 254.6
  },
  "luminance": 0.11303
}

Semantic roles & 50–950 ramp

primary
#1F5FA8
secondary
#C6955D
accent
#9A3CEC
background
#F7F8FC
surface
#EDF0F8
border
#C8CBD1
text
#090C12
muted
#7B7D81

Preview Lab

Preview with #1F5FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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