#1F5B9E#1F5B9E

#1F5B9E is a mid, vivid cyan. Relative luminance 0.102; OKLCH L 46.9% C 0.124 H 254.0°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#1F5B9E
RGBrgb(31, 91, 158)
HSLhsl(212, 67%, 37%)
HSVhsv(212, 80%, 62%)
CMYKcmyk(80.4%, 42.4%, 0%, 38%)
CIE-LABlab(38.27, 5.80, -41.80)
CIE-LCHlch(38.27, 42.20, 277.90°)
OKLaboklab(46.91% -0.0342 -0.1196)
OKLCHoklch(46.91% 0.124 254)
XYZxyz(10.4754, 10.2408, 33.7657)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5B9E #9E621F
analogous
#1F9A9E #1F5B9E #231F9E
triadic
#1F5B9E #9E1F5B #5B9E1F
tetradic
#1F5B9E #9E1F9A #9E621F #1F9E23
square
#1F5B9E #9E1F9A #9E621F #1F9E23
split-complementary
#1F5B9E #9E231F #9A9E1F
monochromatic
#0B2038 #153E6B #1F5B9E #2978D1 #5998DE

Accessibility & contrast

On white

6.89
#1F5B9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#1F5B9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5B9E
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5B9E#FFFFFF#000000##FFFFFF
##1F5B9E1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A60A1
Deuteranopia (green-blind)
#23559D
Tritanopia (blue-blind)
#006B75
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #1f5b9e;
/* rgb */ color: rgb(31, 91, 158);
/* oklch */ color: oklch(46.9% 0.124 254.0);
Tailwind
colors: {
  custom: {
    50: '#6f88bb',
    500: '#1f5b9e',
    950: '#000000',
  },
}
SCSS
$custom: #1f5b9e;
$custom-light: #6f88bb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5b9e",
  "rgb": {
    "r": 31,
    "g": 91,
    "b": 158
  },
  "hsl": {
    "h": 211.654,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4691,
    "c": 0.12443,
    "h": 254
  },
  "luminance": 0.10242
}

Semantic roles & 50–950 ramp

primary
#1F5B9E
secondary
#C28F56
accent
#993EEA
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #1F5B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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