#1F4E6D#1F4E6D

#1F4E6D is a dark, moderate cyan. Relative luminance 0.068; OKLCH L 40.7% C 0.073 H 240.8°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#1F4E6D
RGBrgb(31, 78, 109)
HSLhsl(204, 56%, 27%)
HSVhsv(204, 72%, 43%)
CMYKcmyk(71.6%, 28.4%, 0%, 57.3%)
CIE-LABlab(31.45, -4.89, -22.55)
CIE-LCHlch(31.45, 23.07, 257.75°)
OKLaboklab(40.66% -0.0355 -0.0635)
OKLCHoklch(40.66% 0.073 240.8)
XYZxyz(6.0487, 6.8436, 15.4672)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E6D #6D3E1F
analogous
#1F6D65 #1F4E6D #1F276D
triadic
#1F4E6D #6D1F4E #4E6D1F
tetradic
#1F4E6D #651F6D #6D3E1F #276D1F
square
#1F4E6D #651F6D #6D3E1F #276D1F
split-complementary
#1F4E6D #6D1F27 #6D651F
monochromatic
#071118 #112C3D #1F4E6D #2D709D #3E91C8

Accessibility & contrast

On white

8.87
#1F4E6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#1F4E6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E6D
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E6D#FFFFFF#000000##FFFFFF
##1F4E6D1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#404E6E
Deuteranopia (green-blind)
#35476C
Tritanopia (blue-blind)
#005659
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f4e6d;
/* rgb */ color: rgb(31, 78, 109);
/* oklch */ color: oklch(40.7% 0.073 240.8);
Tailwind
colors: {
  custom: {
    50: '#657f97',
    500: '#1f4e6d',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e6d;
$custom-light: #657f97;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e6d",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 109
  },
  "hsl": {
    "h": 203.846,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.40664,
    "c": 0.0728,
    "h": 240.8
  },
  "luminance": 0.06844
}

Semantic roles & 50–950 ramp

primary
#1F4E6D
secondary
#A16B47
accent
#8449DF
background
#F6F7F9
surface
#EBEEF2
border
#C6C9CC
text
#060A0D
muted
#7A7C7E

Preview Lab

Preview with #1F4E6D

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

Preview Lab → · Contrast checker → · Palette generator →

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