#1F4979#1F4979

#1F4979 is a dark, moderate cyan. Relative luminance 0.064; OKLCH L 40.1% C 0.094 H 253.7°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#1F4979
RGBrgb(31, 73, 121)
HSLhsl(212, 59%, 30%)
HSVhsv(212, 74%, 47%)
CMYKcmyk(74.4%, 39.7%, 0%, 52.5%)
CIE-LABlab(30.49, 3.01, -31.59)
CIE-LCHlch(30.49, 31.74, 275.45°)
OKLaboklab(40.12% -0.0263 -0.09)
OKLCHoklch(40.12% 0.094 253.7)
XYZxyz(6.3975, 6.4362, 18.9906)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4979 #794F1F
analogous
#1F7679 #1F4979 #221F79
triadic
#1F4979 #791F49 #49791F
tetradic
#1F4979 #791F76 #794F1F #1F7922
square
#1F4979 #791F76 #794F1F #1F7922
split-complementary
#1F4979 #79221F #76791F
monochromatic
#060F18 #132C48 #1F4979 #2B66AA #4385CF

Accessibility & contrast

On white

9.18
#1F4979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#1F4979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4979
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4979#FFFFFF#000000##FFFFFF
##1F49791.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334C7B
Deuteranopia (green-blind)
#254478
Tritanopia (blue-blind)
#00545B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f4979;
/* rgb */ color: rgb(31, 73, 121);
/* oklch */ color: oklch(40.1% 0.094 253.7);
Tailwind
colors: {
  custom: {
    50: '#677ba0',
    500: '#1f4979',
    950: '#000000',
  },
}
SCSS
$custom: #1f4979;
$custom-light: #677ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4979",
  "rgb": {
    "r": 31,
    "g": 73,
    "b": 121
  },
  "hsl": {
    "h": 212,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.40122,
    "c": 0.09375,
    "h": 253.7
  },
  "luminance": 0.06437
}

Semantic roles & 50–950 ramp

primary
#1F4979
secondary
#AC7D47
accent
#9945E2
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #1F4979

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

Preview Lab → · Contrast checker → · Palette generator →

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