#1F5A9E#1F5A9E

#1F5A9E is a mid, vivid cyan. Relative luminance 0.101; OKLCH L 46.7% C 0.126 H 254.6°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#1F5A9E
RGBrgb(31, 90, 158)
HSLhsl(212, 67%, 37%)
HSVhsv(212, 80%, 62%)
CMYKcmyk(80.4%, 43%, 0%, 38%)
CIE-LABlab(37.97, 6.45, -42.29)
CIE-LCHlch(37.97, 42.77, 278.67°)
OKLaboklab(46.68% -0.0334 -0.1211)
OKLCHoklch(46.68% 0.126 254.6)
XYZxyz(10.3905, 10.0710, 33.7374)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5A9E #9E631F
analogous
#1F9A9E #1F5A9E #231F9E
triadic
#1F5A9E #9E1F5A #5A9E1F
tetradic
#1F5A9E #9E1F9A #9E631F #1F9E23
square
#1F5A9E #9E1F9A #9E631F #1F9E23
split-complementary
#1F5A9E #9E231F #9A9E1F
monochromatic
#0B2038 #153D6B #1F5A9E #2977D1 #5997DE

Accessibility & contrast

On white

6.97
#1F5A9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#1F5A9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5A9E
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5A9E#FFFFFF#000000##FFFFFF
##1F5A9E1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3860A1
Deuteranopia (green-blind)
#21549D
Tritanopia (blue-blind)
#006A74
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #1f5a9e;
/* rgb */ color: rgb(31, 90, 158);
/* oklch */ color: oklch(46.7% 0.126 254.6);
Tailwind
colors: {
  custom: {
    50: '#6f88bb',
    500: '#1f5a9e',
    950: '#000000',
  },
}
SCSS
$custom: #1f5a9e;
$custom-light: #6f88bb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5a9e",
  "rgb": {
    "r": 31,
    "g": 90,
    "b": 158
  },
  "hsl": {
    "h": 212.126,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.46675,
    "c": 0.12558,
    "h": 254.6
  },
  "luminance": 0.10072
}

Semantic roles & 50–950 ramp

primary
#1F5A9E
secondary
#C29056
accent
#9A3EEA
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #1F5A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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