#1F4874#1F4874

#1F4874 is a dark, moderate cyan. Relative luminance 0.062; OKLCH L 39.6% C 0.088 H 252.3°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#1F4874
RGBrgb(31, 72, 116)
HSLhsl(211, 58%, 29%)
HSVhsv(211, 73%, 45%)
CMYKcmyk(73.3%, 37.9%, 0%, 54.5%)
CIE-LABlab(29.88, 1.71, -29.42)
CIE-LCHlch(29.88, 29.47, 273.32°)
OKLaboklab(39.55% -0.0266 -0.0836)
OKLCHoklch(39.55% 0.088 252.3)
XYZxyz(6.0337, 6.1863, 17.3957)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4874 #744B1F
analogous
#1F7374 #1F4874 #211F74
triadic
#1F4874 #741F48 #48741F
tetradic
#1F4874 #741F73 #744B1F #1F7421
square
#1F4874 #741F73 #744B1F #1F7421
split-complementary
#1F4874 #74211F #73741F
monochromatic
#060F18 #122A44 #1F4874 #2C66A4 #4184CC

Accessibility & contrast

On white

9.39
#1F4874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#1F4874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4874
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4874#FFFFFF#000000##FFFFFF
##1F48741.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344B76
Deuteranopia (green-blind)
#284373
Tritanopia (blue-blind)
#005258
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f4874;
/* rgb */ color: rgb(31, 72, 116);
/* oklch */ color: oklch(39.6% 0.088 252.3);
Tailwind
colors: {
  custom: {
    50: '#667a9c',
    500: '#1f4874',
    950: '#000000',
  },
}
SCSS
$custom: #1f4874;
$custom-light: #667a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4874",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 116
  },
  "hsl": {
    "h": 211.059,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3955,
    "c": 0.08779,
    "h": 252.3
  },
  "luminance": 0.06187
}

Semantic roles & 50–950 ramp

primary
#1F4874
secondary
#A87947
accent
#9747E1
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06090E
muted
#7A7B7E

Preview Lab

Preview with #1F4874

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

Preview Lab → · Contrast checker → · Palette generator →

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