#1F5CA8#1F5CA8

#1F5CA8 is a mid, vivid cyan. Relative luminance 0.108; OKLCH L 47.8% C 0.137 H 256.1°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#1F5CA8
RGBrgb(31, 92, 168)
HSLhsl(213, 69%, 39%)
HSVhsv(213, 82%, 66%)
CMYKcmyk(81.5%, 45.2%, 0%, 34.1%)
CIE-LABlab(39.19, 9.09, -46.28)
CIE-LCHlch(39.19, 47.17, 281.12°)
OKLaboklab(47.83% -0.033 -0.1328)
OKLCHoklch(47.83% 0.137 256.1)
XYZxyz(11.4575, 10.7714, 38.5134)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5CA8 #A86B1F
analogous
#1FA1A8 #1F5CA8 #271FA8
triadic
#1F5CA8 #A81F5C #5CA81F
tetradic
#1F5CA8 #A81FA1 #A86B1F #1FA827
square
#1F5CA8 #A81FA1 #A86B1F #1FA827
split-complementary
#1F5CA8 #A8271F #A1A81F
monochromatic
#0C2341 #154074 #1F5CA8 #2C79D8 #609AE2

Accessibility & contrast

On white

6.66
#1F5CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#1F5CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5CA8
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5CA8#FFFFFF#000000##FFFFFF
##1F5CA81.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3463AB
Deuteranopia (green-blind)
#1657A6
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #1f5ca8;
/* rgb */ color: rgb(31, 92, 168);
/* oklch */ color: oklch(47.8% 0.137 256.1);
Tailwind
colors: {
  custom: {
    50: '#7289c2',
    500: '#1f5ca8',
    950: '#000000',
  },
}
SCSS
$custom: #1f5ca8;
$custom-light: #7289c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5ca8",
  "rgb": {
    "r": 31,
    "g": 92,
    "b": 168
  },
  "hsl": {
    "h": 213.285,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.47826,
    "c": 0.1368,
    "h": 256.1
  },
  "luminance": 0.10773
}

Semantic roles & 50–950 ramp

primary
#1F5CA8
secondary
#C6975D
accent
#9E3CEC
background
#F7F8FC
surface
#EDF0F8
border
#C8CBD1
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #1F5CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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