#1F5AA7#1F5AA7

#1F5AA7 is a mid, vivid cyan. Relative luminance 0.104; OKLCH L 47.3% C 0.138 H 256.8°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#1F5AA7
RGBrgb(31, 90, 167)
HSLhsl(214, 69%, 39%)
HSVhsv(214, 81%, 65%)
CMYKcmyk(81.4%, 46.1%, 0%, 34.5%)
CIE-LABlab(38.54, 10.01, -46.74)
CIE-LCHlch(38.54, 47.80, 282.09°)
OKLaboklab(47.3% -0.0315 -0.1342)
OKLCHoklch(47.3% 0.138 256.8)
XYZxyz(11.1937, 10.3923, 37.9677)
Luminance0.1039 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5AA7 #A76C1F
analogous
#1F9EA7 #1F5AA7 #281FA7
triadic
#1F5AA7 #A71F5A #5AA71F
tetradic
#1F5AA7 #A71F9E #A76C1F #1FA728
square
#1F5AA7 #A71F9E #A76C1F #1FA728
split-complementary
#1F5AA7 #A7281F #9EA71F
monochromatic
#0C2240 #153E73 #1F5AA7 #2B76D8 #5F98E1

Accessibility & contrast

On white

6.82
#1F5AA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#1F5AA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5AA7
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5AA7#FFFFFF#000000##FFFFFF
##1F5AA71.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3161AA
Deuteranopia (green-blind)
#0F55A5
Tritanopia (blue-blind)
#006C78
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #1f5aa7;
/* rgb */ color: rgb(31, 90, 167);
/* oklch */ color: oklch(47.3% 0.138 256.8);
Tailwind
colors: {
  custom: {
    50: '#7188c2',
    500: '#1f5aa7',
    950: '#000000',
  },
}
SCSS
$custom: #1f5aa7;
$custom-light: #7188c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5aa7",
  "rgb": {
    "r": 31,
    "g": 90,
    "b": 167
  },
  "hsl": {
    "h": 213.971,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.47299,
    "c": 0.13782,
    "h": 256.8
  },
  "luminance": 0.10394
}

Semantic roles & 50–950 ramp

primary
#1F5AA7
secondary
#C6985C
accent
#9F3CEC
background
#F7F8FC
surface
#EDEFF8
border
#C8CAD1
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #1F5AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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