#1F4D7D#1F4D7D

#1F4D7D is a dark, moderate cyan. Relative luminance 0.071; OKLCH L 41.4% C 0.095 H 252.0°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#1F4D7D
RGBrgb(31, 77, 125)
HSLhsl(211, 60%, 31%)
HSVhsv(211, 75%, 49%)
CMYKcmyk(75.2%, 38.4%, 0%, 51%)
CIE-LABlab(31.99, 1.94, -31.71)
CIE-LCHlch(31.99, 31.77, 273.50°)
OKLaboklab(41.37% -0.0293 -0.0902)
OKLCHoklch(41.37% 0.095 252)
XYZxyz(6.9192, 7.0790, 20.3998)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D7D #7D4F1F
analogous
#1F7C7D #1F4D7D #201F7D
triadic
#1F4D7D #7D1F4D #4D7D1F
tetradic
#1F4D7D #7D1F7C #7D4F1F #1F7D20
square
#1F4D7D #7D1F7C #7D4F1F #1F7D20
split-complementary
#1F4D7D #7D201F #7C7D1F
monochromatic
#07111B #132F4C #1F4D7D #2B6BAE #458AD1

Accessibility & contrast

On white

8.69
#1F4D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#1F4D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4D7D
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D7D#FFFFFF#000000##FFFFFF
##1F4D7D1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37507F
Deuteranopia (green-blind)
#29477C
Tritanopia (blue-blind)
#00585F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f4d7d;
/* rgb */ color: rgb(31, 77, 125);
/* oklch */ color: oklch(41.4% 0.095 252.0);
Tailwind
colors: {
  custom: {
    50: '#687ea3',
    500: '#1f4d7d',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d7d;
$custom-light: #687ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d7d",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 125
  },
  "hsl": {
    "h": 210.638,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.41369,
    "c": 0.0949,
    "h": 252
  },
  "luminance": 0.0708
}

Semantic roles & 50–950 ramp

primary
#1F4D7D
secondary
#B07D48
accent
#9644E3
background
#F6F7FA
surface
#EBEEF3
border
#C6C9CD
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #1F4D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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