#1F5A8B#1F5A8B

#1F5A8B is a mid, moderate cyan. Relative luminance 0.095; OKLCH L 45.5% C 0.100 H 247.5°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#1F5A8B
RGBrgb(31, 90, 139)
HSLhsl(207, 64%, 33%)
HSVhsv(207, 78%, 55%)
CMYKcmyk(77.7%, 35.3%, 0%, 45.5%)
CIE-LABlab(36.87, -1.00, -32.58)
CIE-LCHlch(36.87, 32.59, 268.24°)
OKLaboklab(45.46% -0.0383 -0.0926)
OKLCHoklch(45.46% 0.1 247.5)
XYZxyz(8.8797, 9.4667, 25.7804)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5A8B #8B501F
analogous
#1F8B86 #1F5A8B #1F248B
triadic
#1F5A8B #8B1F5A #5A8B1F
tetradic
#1F5A8B #861F8B #8B501F #248B1F
square
#1F5A8B #861F8B #8B501F #248B1F
split-complementary
#1F5A8B #8B1F24 #8B861F
monochromatic
#091927 #143A59 #1F5A8B #2A7ABD #4D99D7

Accessibility & contrast

On white

7.26
#1F5A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F5A8B
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5A8B#FFFFFF#000000##FFFFFF
##1F5A8B1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435C8D
Deuteranopia (green-blind)
#34528A
Tritanopia (blue-blind)
#00666C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #1f5a8b;
/* rgb */ color: rgb(31, 90, 139);
/* oklch */ color: oklch(45.5% 0.100 247.5);
Tailwind
colors: {
  custom: {
    50: '#6b88ad',
    500: '#1f5a8b',
    950: '#000000',
  },
}
SCSS
$custom: #1f5a8b;
$custom-light: #6b88ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5a8b",
  "rgb": {
    "r": 31,
    "g": 90,
    "b": 139
  },
  "hsl": {
    "h": 207.222,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45455,
    "c": 0.1002,
    "h": 247.5
  },
  "luminance": 0.09468
}

Semantic roles & 50–950 ramp

primary
#1F5A8B
secondary
#BA7E4C
accent
#8C41E7
background
#F6F8FA
surface
#ECEFF4
border
#C7CACE
text
#080B10
muted
#7A7C7F

Preview Lab

Preview with #1F5A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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