#1F5CA1#1F5CA1

#1F5CA1 is a mid, vivid cyan. Relative luminance 0.105; OKLCH L 47.3% C 0.127 H 254.3°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#1F5CA1
RGBrgb(31, 92, 161)
HSLhsl(212, 68%, 38%)
HSVhsv(212, 81%, 63%)
CMYKcmyk(80.7%, 42.9%, 0%, 36.9%)
CIE-LABlab(38.76, 6.33, -42.82)
CIE-LCHlch(38.76, 43.29, 278.41°)
OKLaboklab(47.35% -0.0344 -0.1226)
OKLCHoklch(47.35% 0.127 254.3)
XYZxyz(10.8228, 10.5175, 35.1710)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5CA1 #A1641F
analogous
#1F9DA1 #1F5CA1 #231FA1
triadic
#1F5CA1 #A11F5C #5CA11F
tetradic
#1F5CA1 #A11F9D #A1641F #1FA123
square
#1F5CA1 #A11F9D #A1641F #1FA123
split-complementary
#1F5CA1 #A1231F #9DA11F
monochromatic
#0B213A #153F6E #1F5CA1 #2979D4 #5B99DF

Accessibility & contrast

On white

6.77
#1F5CA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#1F5CA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5CA1
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5CA1#FFFFFF#000000##FFFFFF
##1F5CA11.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A62A4
Deuteranopia (green-blind)
#2256A0
Tritanopia (blue-blind)
#006C76
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #1f5ca1;
/* rgb */ color: rgb(31, 92, 161);
/* oklch */ color: oklch(47.3% 0.127 254.3);
Tailwind
colors: {
  custom: {
    50: '#7089bd',
    500: '#1f5ca1',
    950: '#000000',
  },
}
SCSS
$custom: #1f5ca1;
$custom-light: #7089bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5ca1",
  "rgb": {
    "r": 31,
    "g": 92,
    "b": 161
  },
  "hsl": {
    "h": 211.846,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47346,
    "c": 0.12734,
    "h": 254.3
  },
  "luminance": 0.10519
}

Semantic roles & 50–950 ramp

primary
#1F5CA1
secondary
#C49158
accent
#993DEB
background
#F7F8FB
surface
#EDF0F6
border
#C8CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #1F5CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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