#1F5189#1F5189

#1F5189 is a dark, moderate cyan. Relative luminance 0.080; OKLCH L 43.1% C 0.107 H 253.7°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#1F5189
RGBrgb(31, 81, 137)
HSLhsl(212, 63%, 33%)
HSVhsv(212, 77%, 54%)
CMYKcmyk(77.4%, 40.9%, 0%, 46.3%)
CIE-LABlab(33.94, 4.04, -36.00)
CIE-LCHlch(33.94, 36.22, 276.40°)
OKLaboklab(43.13% -0.0301 -0.1028)
OKLCHoklch(43.13% 0.107 253.7)
XYZxyz(8.0212, 7.9814, 24.7799)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5189 #89571F
analogous
#1F8689 #1F5189 #221F89
triadic
#1F5189 #891F51 #51891F
tetradic
#1F5189 #891F86 #89571F #1F8922
square
#1F5189 #891F86 #89571F #1F8922
split-complementary
#1F5189 #89221F #86891F
monochromatic
#081625 #143357 #1F5189 #2A6FBB #4C8DD6

Accessibility & contrast

On white

8.09
#1F5189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#1F5189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5189
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5189#FFFFFF#000000##FFFFFF
##1F51891.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36558B
Deuteranopia (green-blind)
#254B88
Tritanopia (blue-blind)
#005E66
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f5189;
/* rgb */ color: rgb(31, 81, 137);
/* oklch */ color: oklch(43.1% 0.107 253.7);
Tailwind
colors: {
  custom: {
    50: '#6b81ac',
    500: '#1f5189',
    950: '#000000',
  },
}
SCSS
$custom: #1f5189;
$custom-light: #6b81ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5189",
  "rgb": {
    "r": 31,
    "g": 81,
    "b": 137
  },
  "hsl": {
    "h": 211.698,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43128,
    "c": 0.10709,
    "h": 253.7
  },
  "luminance": 0.07982
}

Semantic roles & 50–950 ramp

primary
#1F5189
secondary
#B9854B
accent
#9942E6
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A10
muted
#7A7C7F

Preview Lab

Preview with #1F5189

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

Preview Lab → · Contrast checker → · Palette generator →

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