#1F5879#1F5879

#1F5879 is a dark, moderate cyan. Relative luminance 0.087; OKLCH L 43.9% C 0.080 H 238.1°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#1F5879
RGBrgb(31, 88, 121)
HSLhsl(202, 59%, 30%)
HSVhsv(202, 74%, 47%)
CMYKcmyk(74.4%, 27.3%, 0%, 52.5%)
CIE-LABlab(35.30, -6.63, -24.01)
CIE-LCHlch(35.30, 24.91, 254.57°)
OKLaboklab(43.91% -0.0422 -0.0677)
OKLCHoklch(43.91% 0.08 238.1)
XYZxyz(7.5046, 8.6504, 19.3596)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5879 #79401F
analogous
#1F796D #1F5879 #1F2B79
triadic
#1F5879 #791F58 #58791F
tetradic
#1F5879 #6D1F79 #79401F #2B791F
square
#1F5879 #6D1F79 #79401F #2B791F
split-complementary
#1F5879 #791F2B #796D1F
monochromatic
#061218 #133548 #1F5879 #2B7BAA #439CCF

Accessibility & contrast

On white

7.69
#1F5879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#1F5879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5879
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5879#FFFFFF#000000##FFFFFF
##1F58791.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48587B
Deuteranopia (green-blind)
#3C4F78
Tritanopia (blue-blind)
#006063
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #1f5879;
/* rgb */ color: rgb(31, 88, 121);
/* oklch */ color: oklch(43.9% 0.080 238.1);
Tailwind
colors: {
  custom: {
    50: '#6787a0',
    500: '#1f5879',
    950: '#000000',
  },
}
SCSS
$custom: #1f5879;
$custom-light: #6787a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5879",
  "rgb": {
    "r": 31,
    "g": 88,
    "b": 121
  },
  "hsl": {
    "h": 202,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.43914,
    "c": 0.07975,
    "h": 238.1
  },
  "luminance": 0.08651
}

Semantic roles & 50–950 ramp

primary
#1F5879
secondary
#AC6C47
accent
#7F45E2
background
#F6F8F9
surface
#EBEFF2
border
#C6CACC
text
#070B0E
muted
#7A7C7E

Preview Lab

Preview with #1F5879

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

Preview Lab → · Contrast checker → · Palette generator →

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