#1F5A8A#1F5A8A

#1F5A8A is a mid, moderate cyan. Relative luminance 0.094; OKLCH L 45.4% C 0.099 H 247.0°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#1F5A8A
RGBrgb(31, 90, 138)
HSLhsl(207, 63%, 33%)
HSVhsv(207, 78%, 54%)
CMYKcmyk(77.5%, 34.8%, 0%, 45.9%)
CIE-LABlab(36.81, -1.39, -32.06)
CIE-LCHlch(36.81, 32.09, 267.52°)
OKLaboklab(45.4% -0.0386 -0.0911)
OKLCHoklch(45.4% 0.099 247)
XYZxyz(8.8069, 9.4376, 25.3973)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5A8A #8A4F1F
analogous
#1F8A84 #1F5A8A #1F248A
triadic
#1F5A8A #8A1F5A #5A8A1F
tetradic
#1F5A8A #841F8A #8A4F1F #248A1F
square
#1F5A8A #841F8A #8A4F1F #248A1F
split-complementary
#1F5A8A #8A1F24 #8A841F
monochromatic
#091926 #143958 #1F5A8A #2A7BBC #4C99D7

Accessibility & contrast

On white

7.27
#1F5A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#1F5A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5A8A
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5A8A#FFFFFF#000000##FFFFFF
##1F5A8A1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445C8C
Deuteranopia (green-blind)
#355289
Tritanopia (blue-blind)
#00666B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #1f5a8a;
/* rgb */ color: rgb(31, 90, 138);
/* oklch */ color: oklch(45.4% 0.099 247.0);
Tailwind
colors: {
  custom: {
    50: '#6b88ac',
    500: '#1f5a8a',
    950: '#000000',
  },
}
SCSS
$custom: #1f5a8a;
$custom-light: #6b88ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5a8a",
  "rgb": {
    "r": 31,
    "g": 90,
    "b": 138
  },
  "hsl": {
    "h": 206.916,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45395,
    "c": 0.09892,
    "h": 247
  },
  "luminance": 0.09439
}

Semantic roles & 50–950 ramp

primary
#1F5A8A
secondary
#BA7D4B
accent
#8B41E6
background
#F6F8FA
surface
#ECEFF4
border
#C7CACE
text
#080B10
muted
#7A7C7F

Preview Lab

Preview with #1F5A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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