#1F579D#1F579D

#1F579D is a mid, vivid cyan. Relative luminance 0.095; OKLCH L 45.9% C 0.128 H 256.0°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#1F579D
RGBrgb(31, 87, 157)
HSLhsl(213, 67%, 37%)
HSVhsv(213, 80%, 62%)
CMYKcmyk(80.3%, 44.6%, 0%, 38.4%)
CIE-LABlab(37.01, 8.02, -43.23)
CIE-LCHlch(37.01, 43.97, 280.51°)
OKLaboklab(45.91% -0.031 -0.1239)
OKLCHoklch(45.91% 0.128 256)
XYZxyz(10.0568, 9.5408, 33.2033)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F579D #9D651F
analogous
#1F969D #1F579D #261F9D
triadic
#1F579D #9D1F57 #579D1F
tetradic
#1F579D #9D1F96 #9D651F #1F9D26
square
#1F579D #9D1F96 #9D651F #1F9D26
split-complementary
#1F579D #9D261F #969D1F
monochromatic
#0B1E37 #153B6A #1F579D #2973D0 #5894DE

Accessibility & contrast

On white

7.22
#1F579D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#1F579D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F579D
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F579D#FFFFFF#000000##FFFFFF
##1F579D1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335DA0
Deuteranopia (green-blind)
#1A529C
Tritanopia (blue-blind)
#006872
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #1f579d;
/* rgb */ color: rgb(31, 87, 157);
/* oklch */ color: oklch(45.9% 0.128 256.0);
Tailwind
colors: {
  custom: {
    50: '#6f85ba',
    500: '#1f579d',
    950: '#000000',
  },
}
SCSS
$custom: #1f579d;
$custom-light: #6f85ba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f579d",
  "rgb": {
    "r": 31,
    "g": 87,
    "b": 157
  },
  "hsl": {
    "h": 213.333,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45907,
    "c": 0.12771,
    "h": 256
  },
  "luminance": 0.09542
}

Semantic roles & 50–950 ramp

primary
#1F579D
secondary
#C29256
accent
#9D3EEA
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #1F579D

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

Preview Lab → · Contrast checker → · Palette generator →

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