#1F4F8A#1F4F8A

#1F4F8A is a dark, moderate cyan. Relative luminance 0.077; OKLCH L 42.7% C 0.111 H 255.4°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#1F4F8A
RGBrgb(31, 79, 138)
HSLhsl(213, 63%, 33%)
HSVhsv(213, 78%, 54%)
CMYKcmyk(77.5%, 42.8%, 0%, 45.9%)
CIE-LABlab(33.39, 5.76, -37.50)
CIE-LCHlch(33.39, 37.94, 278.73°)
OKLaboklab(42.71% -0.028 -0.1072)
OKLCHoklch(42.71% 0.111 255.4)
XYZxyz(7.9468, 7.7173, 25.1106)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F8A #8A5A1F
analogous
#1F848A #1F4F8A #241F8A
triadic
#1F4F8A #8A1F4F #4F8A1F
tetradic
#1F4F8A #8A1F84 #8A5A1F #1F8A24
square
#1F4F8A #8A1F84 #8A5A1F #1F8A24
split-complementary
#1F4F8A #8A241F #848A1F
monochromatic
#091626 #143258 #1F4F8A #2A6CBC #4C8BD7

Accessibility & contrast

On white

8.26
#1F4F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#1F4F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F8A
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F8A#FFFFFF#000000##FFFFFF
##1F4F8A1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548C
Deuteranopia (green-blind)
#204A89
Tritanopia (blue-blind)
#005D65
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4f8a;
/* rgb */ color: rgb(31, 79, 138);
/* oklch */ color: oklch(42.7% 0.111 255.4);
Tailwind
colors: {
  custom: {
    50: '#6b7fac',
    500: '#1f4f8a',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f8a;
$custom-light: #6b7fac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f8a",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 138
  },
  "hsl": {
    "h": 213.084,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42714,
    "c": 0.11079,
    "h": 255.4
  },
  "luminance": 0.07718
}

Semantic roles & 50–950 ramp

primary
#1F4F8A
secondary
#BA884B
accent
#9C41E6
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A10
muted
#7A7C7F

Preview Lab

Preview with #1F4F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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