#1F5995#1F5995

#1F5995 is a mid, moderate cyan. Relative luminance 0.096; OKLCH L 45.8% C 0.115 H 252.4°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#1F5995
RGBrgb(31, 89, 149)
HSLhsl(211, 66%, 35%)
HSVhsv(211, 79%, 58%)
CMYKcmyk(79.2%, 40.3%, 0%, 41.6%)
CIE-LABlab(37.12, 3.55, -38.23)
CIE-LCHlch(37.12, 38.39, 275.30°)
OKLaboklab(45.84% -0.0346 -0.1092)
OKLCHoklch(45.84% 0.115 252.4)
XYZxyz(9.5602, 9.6049, 29.7780)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5995 #955B1F
analogous
#1F9495 #1F5995 #201F95
triadic
#1F5995 #951F59 #59951F
tetradic
#1F5995 #951F94 #955B1F #1F9520
square
#1F5995 #951F94 #955B1F #1F9520
split-complementary
#1F5995 #95201F #94951F
monochromatic
#0A1C30 #143B62 #1F5995 #2A77C8 #5396DB

Accessibility & contrast

On white

7.19
#1F5995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#1F5995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5995
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5995#FFFFFF#000000##FFFFFF
##1F59951.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5D97
Deuteranopia (green-blind)
#295294
Tritanopia (blue-blind)
#00676F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #1f5995;
/* rgb */ color: rgb(31, 89, 149);
/* oklch */ color: oklch(45.8% 0.115 252.4);
Tailwind
colors: {
  custom: {
    50: '#6d87b4',
    500: '#1f5995',
    950: '#000000',
  },
}
SCSS
$custom: #1f5995;
$custom-light: #6d87b4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5995",
  "rgb": {
    "r": 31,
    "g": 89,
    "b": 149
  },
  "hsl": {
    "h": 210.508,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45841,
    "c": 0.11452,
    "h": 252.4
  },
  "luminance": 0.09606
}

Semantic roles & 50–950 ramp

primary
#1F5995
secondary
#BF8951
accent
#953FE9
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#080B11
muted
#7B7C80

Preview Lab

Preview with #1F5995

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

Preview Lab → · Contrast checker → · Palette generator →

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