#1F4D8A#1F4D8A

#1F4D8A is a dark, moderate cyan. Relative luminance 0.074; OKLCH L 42.2% C 0.113 H 256.7°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#1F4D8A
RGBrgb(31, 77, 138)
HSLhsl(214, 63%, 33%)
HSVhsv(214, 78%, 54%)
CMYKcmyk(77.5%, 44.2%, 0%, 45.9%)
CIE-LABlab(32.77, 7.10, -38.48)
CIE-LCHlch(32.77, 39.13, 280.45°)
OKLaboklab(42.24% -0.0261 -0.1101)
OKLCHoklch(42.24% 0.113 256.7)
XYZxyz(7.8047, 7.4331, 25.0632)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D8A #8A5C1F
analogous
#1F828A #1F4D8A #271F8A
triadic
#1F4D8A #8A1F4D #4D8A1F
tetradic
#1F4D8A #8A1F82 #8A5C1F #1F8A27
square
#1F4D8A #8A1F82 #8A5C1F #1F8A27
split-complementary
#1F4D8A #8A271F #828A1F
monochromatic
#091526 #143158 #1F4D8A #2A69BC #4C88D7

Accessibility & contrast

On white

8.44
#1F4D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#1F4D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4D8A
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D8A#FFFFFF#000000##FFFFFF
##1F4D8A1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F528C
Deuteranopia (green-blind)
#1B4989
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4d8a;
/* rgb */ color: rgb(31, 77, 138);
/* oklch */ color: oklch(42.2% 0.113 256.7);
Tailwind
colors: {
  custom: {
    50: '#6b7eac',
    500: '#1f4d8a',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d8a;
$custom-light: #6b7eac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d8a",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 138
  },
  "hsl": {
    "h": 214.206,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42238,
    "c": 0.11319,
    "h": 256.7
  },
  "luminance": 0.07434
}

Semantic roles & 50–950 ramp

primary
#1F4D8A
secondary
#BA8A4B
accent
#9F41E6
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1F4D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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