#1F5CA7#1F5CA7

#1F5CA7 is a mid, vivid cyan. Relative luminance 0.107; OKLCH L 47.8% C 0.135 H 255.8°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#1F5CA7
RGBrgb(31, 92, 167)
HSLhsl(213, 69%, 39%)
HSVhsv(213, 81%, 65%)
CMYKcmyk(81.4%, 44.9%, 0%, 34.5%)
CIE-LABlab(39.13, 8.70, -45.79)
CIE-LCHlch(39.13, 46.61, 280.76°)
OKLaboklab(47.76% -0.0332 -0.1313)
OKLCHoklch(47.76% 0.135 255.8)
XYZxyz(11.3647, 10.7342, 38.0247)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5CA7 #A76A1F
analogous
#1FA0A7 #1F5CA7 #261FA7
triadic
#1F5CA7 #A71F5C #5CA71F
tetradic
#1F5CA7 #A71FA0 #A76A1F #1FA726
square
#1F5CA7 #A71FA0 #A76A1F #1FA726
split-complementary
#1F5CA7 #A7261F #A0A71F
monochromatic
#0C2340 #154073 #1F5CA7 #2B79D8 #5F99E1

Accessibility & contrast

On white

6.67
#1F5CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F5CA7
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5CA7#FFFFFF#000000##FFFFFF
##1F5CA71.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3563AA
Deuteranopia (green-blind)
#1856A6
Tritanopia (blue-blind)
#006E79
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #1f5ca7;
/* rgb */ color: rgb(31, 92, 167);
/* oklch */ color: oklch(47.8% 0.135 255.8);
Tailwind
colors: {
  custom: {
    50: '#7189c2',
    500: '#1f5ca7',
    950: '#000000',
  },
}
SCSS
$custom: #1f5ca7;
$custom-light: #7189c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5ca7",
  "rgb": {
    "r": 31,
    "g": 92,
    "b": 167
  },
  "hsl": {
    "h": 213.088,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.47757,
    "c": 0.13545,
    "h": 255.8
  },
  "luminance": 0.10736
}

Semantic roles & 50–950 ramp

primary
#1F5CA7
secondary
#C6965C
accent
#9D3CEC
background
#F7F8FB
surface
#EDF0F7
border
#C8CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #1F5CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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