#1F4F8B#1F4F8B

#1F4F8B is a dark, moderate cyan. Relative luminance 0.077; OKLCH L 42.8% C 0.112 H 255.7°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#1F4F8B
RGBrgb(31, 79, 139)
HSLhsl(213, 64%, 33%)
HSVhsv(213, 78%, 55%)
CMYKcmyk(77.7%, 43.2%, 0%, 45.5%)
CIE-LABlab(33.45, 6.16, -38.01)
CIE-LCHlch(33.45, 38.51, 279.20°)
OKLaboklab(42.78% -0.0278 -0.1087)
OKLCHoklch(42.78% 0.112 255.7)
XYZxyz(8.0195, 7.7464, 25.4936)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F8B #8B5B1F
analogous
#1F858B #1F4F8B #251F8B
triadic
#1F4F8B #8B1F4F #4F8B1F
tetradic
#1F4F8B #8B1F85 #8B5B1F #1F8B25
square
#1F4F8B #8B1F85 #8B5B1F #1F8B25
split-complementary
#1F4F8B #8B251F #858B1F
monochromatic
#091627 #143359 #1F4F8B #2A6BBD #4D8BD7

Accessibility & contrast

On white

8.24
#1F4F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#1F4F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F8B
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F8B#FFFFFF#000000##FFFFFF
##1F4F8B1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548D
Deuteranopia (green-blind)
#1F4A8A
Tritanopia (blue-blind)
#005D66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f4f8b;
/* rgb */ color: rgb(31, 79, 139);
/* oklch */ color: oklch(42.8% 0.112 255.7);
Tailwind
colors: {
  custom: {
    50: '#6b7fad',
    500: '#1f4f8b',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f8b;
$custom-light: #6b7fad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f8b",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 139
  },
  "hsl": {
    "h": 213.333,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.42782,
    "c": 0.1122,
    "h": 255.7
  },
  "luminance": 0.07747
}

Semantic roles & 50–950 ramp

primary
#1F4F8B
secondary
#BA894C
accent
#9D41E7
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A10
muted
#7A7C7F

Preview Lab

Preview with #1F4F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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