#1F5B9D#1F5B9D

#1F5B9D is a mid, vivid cyan. Relative luminance 0.102; OKLCH L 46.8% C 0.123 H 253.7°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#1F5B9D
RGBrgb(31, 91, 157)
HSLhsl(211, 67%, 37%)
HSVhsv(211, 80%, 62%)
CMYKcmyk(80.3%, 42%, 0%, 38.4%)
CIE-LABlab(38.21, 5.40, -41.30)
CIE-LCHlch(38.21, 41.65, 277.45°)
OKLaboklab(46.84% -0.0345 -0.1181)
OKLCHoklch(46.84% 0.123 253.7)
XYZxyz(10.3897, 10.2066, 33.3142)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5B9D #9D611F
analogous
#1F9A9D #1F5B9D #221F9D
triadic
#1F5B9D #9D1F5B #5B9D1F
tetradic
#1F5B9D #9D1F9A #9D611F #1F9D22
square
#1F5B9D #9D1F9A #9D611F #1F9D22
split-complementary
#1F5B9D #9D221F #9A9D1F
monochromatic
#0B2037 #153D6A #1F5B9D #2979D0 #5898DE

Accessibility & contrast

On white

6.90
#1F5B9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#1F5B9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5B9D
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5B9D#FFFFFF#000000##FFFFFF
##1F5B9D1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B60A0
Deuteranopia (green-blind)
#25559C
Tritanopia (blue-blind)
#006B74
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #1f5b9d;
/* rgb */ color: rgb(31, 91, 157);
/* oklch */ color: oklch(46.8% 0.123 253.7);
Tailwind
colors: {
  custom: {
    50: '#6f88ba',
    500: '#1f5b9d',
    950: '#000000',
  },
}
SCSS
$custom: #1f5b9d;
$custom-light: #6f88ba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5b9d",
  "rgb": {
    "r": 31,
    "g": 91,
    "b": 157
  },
  "hsl": {
    "h": 211.429,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46843,
    "c": 0.12308,
    "h": 253.7
  },
  "luminance": 0.10208
}

Semantic roles & 50–950 ramp

primary
#1F5B9D
secondary
#C28E56
accent
#983EEA
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#080B12
muted
#7B7C81

Preview Lab

Preview with #1F5B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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