#1F4C8A#1F4C8A

#1F4C8A is a dark, moderate cyan. Relative luminance 0.073; OKLCH L 42.0% C 0.114 H 257.3°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#1F4C8A
RGBrgb(31, 76, 138)
HSLhsl(215, 63%, 33%)
HSVhsv(215, 78%, 54%)
CMYKcmyk(77.5%, 44.9%, 0%, 45.9%)
CIE-LABlab(32.47, 7.77, -38.97)
CIE-LCHlch(32.47, 39.73, 281.27°)
OKLaboklab(42% -0.0252 -0.1116)
OKLCHoklch(42% 0.114 257.3)
XYZxyz(7.7353, 7.2943, 25.0401)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4C8A #8A5D1F
analogous
#1F818A #1F4C8A #271F8A
triadic
#1F4C8A #8A1F4C #4C8A1F
tetradic
#1F4C8A #8A1F81 #8A5D1F #1F8A27
square
#1F4C8A #8A1F81 #8A5D1F #1F8A27
split-complementary
#1F4C8A #8A271F #818A1F
monochromatic
#091526 #143058 #1F4C8A #2A68BC #4C87D7

Accessibility & contrast

On white

8.54
#1F4C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#1F4C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4C8A
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4C8A#FFFFFF#000000##FFFFFF
##1F4C8A1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D528C
Deuteranopia (green-blind)
#184889
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f4c8a;
/* rgb */ color: rgb(31, 76, 138);
/* oklch */ color: oklch(42.0% 0.114 257.3);
Tailwind
colors: {
  custom: {
    50: '#6b7dac',
    500: '#1f4c8a',
    950: '#000000',
  },
}
SCSS
$custom: #1f4c8a;
$custom-light: #6b7dac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4c8a",
  "rgb": {
    "r": 31,
    "g": 76,
    "b": 138
  },
  "hsl": {
    "h": 214.766,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42001,
    "c": 0.11439,
    "h": 257.3
  },
  "luminance": 0.07295
}

Semantic roles & 50–950 ramp

primary
#1F4C8A
secondary
#BA8B4B
accent
#A141E6
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1F4C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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