#1F4E6B#1F4E6B

#1F4E6B is a dark, moderate cyan. Relative luminance 0.068; OKLCH L 40.6% C 0.070 H 239.0°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#1F4E6B
RGBrgb(31, 78, 107)
HSLhsl(203, 55%, 27%)
HSVhsv(203, 71%, 42%)
CMYKcmyk(71%, 27.1%, 0%, 58%)
CIE-LABlab(31.35, -5.65, -21.44)
CIE-LCHlch(31.35, 22.17, 255.25°)
OKLaboklab(40.55% -0.0362 -0.0603)
OKLCHoklch(40.55% 0.07 239)
XYZxyz(5.9423, 6.8010, 14.9066)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E6B #6B3C1F
analogous
#1F6B62 #1F4E6B #1F286B
triadic
#1F4E6B #6B1F4E #4E6B1F
tetradic
#1F4E6B #621F6B #6B3C1F #286B1F
square
#1F4E6B #621F6B #6B3C1F #286B1F
split-complementary
#1F4E6B #6B1F28 #6B621F
monochromatic
#071118 #112B3C #1F4E6B #2D719A #3D92C7

Accessibility & contrast

On white

8.90
#1F4E6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#1F4E6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E6B
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E6B#FFFFFF#000000##FFFFFF
##1F4E6B1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#414E6C
Deuteranopia (green-blind)
#36466A
Tritanopia (blue-blind)
#005558
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f4e6b;
/* rgb */ color: rgb(31, 78, 107);
/* oklch */ color: oklch(40.6% 0.070 239.0);
Tailwind
colors: {
  custom: {
    50: '#647f95',
    500: '#1f4e6b',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e6b;
$custom-light: #647f95;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e6b",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 107
  },
  "hsl": {
    "h": 202.895,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.40553,
    "c": 0.0704,
    "h": 239
  },
  "luminance": 0.06802
}

Semantic roles & 50–950 ramp

primary
#1F4E6B
secondary
#9F6847
accent
#8249DE
background
#F6F7F9
surface
#EBEEF1
border
#C6C9CB
text
#060A0D
muted
#7A7C7E

Preview Lab

Preview with #1F4E6B

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

Preview Lab → · Contrast checker → · Palette generator →

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