#1F4B7D#1F4B7D

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

Color values

HEX#1F4B7D
RGBrgb(31, 75, 125)
HSLhsl(212, 60%, 31%)
HSVhsv(212, 75%, 49%)
CMYKcmyk(75.2%, 40%, 0%, 51%)
CIE-LABlab(31.36, 3.26, -32.71)
CIE-LCHlch(31.36, 32.87, 275.69°)
OKLaboklab(40.88% -0.0273 -0.0932)
OKLCHoklch(40.88% 0.097 253.7)
XYZxyz(6.7814, 6.8034, 20.3538)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4B7D #7D511F
analogous
#1F7A7D #1F4B7D #221F7D
triadic
#1F4B7D #7D1F4B #4B7D1F
tetradic
#1F4B7D #7D1F7A #7D511F #1F7D22
square
#1F4B7D #7D1F7A #7D511F #1F7D22
split-complementary
#1F4B7D #7D221F #7A7D1F
monochromatic
#07101B #132E4C #1F4B7D #2B68AE #4587D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F4B7D#FFFFFF#000000##FFFFFF
##1F4B7D1.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)
#344F7F
Deuteranopia (green-blind)
#25467C
Tritanopia (blue-blind)
#00575E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f4b7d;
/* rgb */ color: rgb(31, 75, 125);
/* oklch */ color: oklch(40.9% 0.097 253.7);
Tailwind
colors: {
  custom: {
    50: '#687ca3',
    500: '#1f4b7d',
    950: '#000000',
  },
}
SCSS
$custom: #1f4b7d;
$custom-light: #687ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4b7d",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 125
  },
  "hsl": {
    "h": 211.915,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.40876,
    "c": 0.09714,
    "h": 253.7
  },
  "luminance": 0.06804
}

Semantic roles & 50–950 ramp

primary
#1F4B7D
secondary
#B07F48
accent
#9944E3
background
#F6F7FA
surface
#EBEEF4
border
#C6C9CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #1F4B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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