#1F5894#1F5894

#1F5894 is a mid, moderate cyan. Relative luminance 0.094; OKLCH L 45.5% C 0.114 H 252.7°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#1F5894
RGBrgb(31, 88, 148)
HSLhsl(211, 65%, 35%)
HSVhsv(211, 79%, 58%)
CMYKcmyk(79.1%, 40.5%, 0%, 42%)
CIE-LABlab(36.76, 3.80, -38.21)
CIE-LCHlch(36.76, 38.40, 275.69°)
OKLaboklab(45.54% -0.0339 -0.1091)
OKLCHoklch(45.54% 0.114 252.7)
XYZxyz(9.3981, 9.4078, 29.3318)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5894 #945B1F
analogous
#1F9394 #1F5894 #201F94
triadic
#1F5894 #941F58 #58941F
tetradic
#1F5894 #941F93 #945B1F #1F9420
square
#1F5894 #941F93 #945B1F #1F9420
split-complementary
#1F5894 #94201F #93941F
monochromatic
#0A1C2F #143A61 #1F5894 #2A76C7 #5395DB

Accessibility & contrast

On white

7.29
#1F5894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#1F5894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5894
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5894#FFFFFF#000000##FFFFFF
##1F58941.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5C96
Deuteranopia (green-blind)
#285293
Tritanopia (blue-blind)
#00666F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #1f5894;
/* rgb */ color: rgb(31, 88, 148);
/* oklch */ color: oklch(45.5% 0.114 252.7);
Tailwind
colors: {
  custom: {
    50: '#6d86b4',
    500: '#1f5894',
    950: '#000000',
  },
}
SCSS
$custom: #1f5894;
$custom-light: #6d86b4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5894",
  "rgb": {
    "r": 31,
    "g": 88,
    "b": 148
  },
  "hsl": {
    "h": 210.769,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45536,
    "c": 0.11428,
    "h": 252.7
  },
  "luminance": 0.09409
}

Semantic roles & 50–950 ramp

primary
#1F5894
secondary
#BE8951
accent
#963FE8
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#080B11
muted
#7B7C80

Preview Lab

Preview with #1F5894

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

Preview Lab → · Contrast checker → · Palette generator →

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