#1F4879#1F4879

#1F4879 is a dark, moderate cyan. Relative luminance 0.063; OKLCH L 39.9% C 0.095 H 254.6°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#1F4879
RGBrgb(31, 72, 121)
HSLhsl(213, 59%, 30%)
HSVhsv(213, 74%, 47%)
CMYKcmyk(74.4%, 40.5%, 0%, 52.5%)
CIE-LABlab(30.17, 3.68, -32.10)
CIE-LCHlch(30.17, 32.31, 276.55°)
OKLaboklab(39.88% -0.0253 -0.0915)
OKLCHoklch(39.88% 0.095 254.6)
XYZxyz(6.3324, 6.3058, 18.9689)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4879 #79501F
analogous
#1F7579 #1F4879 #231F79
triadic
#1F4879 #791F48 #48791F
tetradic
#1F4879 #791F75 #79501F #1F7923
square
#1F4879 #791F75 #79501F #1F7923
split-complementary
#1F4879 #79231F #75791F
monochromatic
#060E18 #132B48 #1F4879 #2B65AA #4383CF

Accessibility & contrast

On white

9.29
#1F4879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#1F4879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4879
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4879#FFFFFF#000000##FFFFFF
##1F48791.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314C7B
Deuteranopia (green-blind)
#234378
Tritanopia (blue-blind)
#00535A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f4879;
/* rgb */ color: rgb(31, 72, 121);
/* oklch */ color: oklch(39.9% 0.095 254.6);
Tailwind
colors: {
  custom: {
    50: '#677aa0',
    500: '#1f4879',
    950: '#000000',
  },
}
SCSS
$custom: #1f4879;
$custom-light: #677aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4879",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 121
  },
  "hsl": {
    "h": 212.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.39875,
    "c": 0.0949,
    "h": 254.6
  },
  "luminance": 0.06307
}

Semantic roles & 50–950 ramp

primary
#1F4879
secondary
#AC7E47
accent
#9B45E2
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #1F4879

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

Preview Lab → · Contrast checker → · Palette generator →

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