#1F4D8E#1F4D8E

#1F4D8E is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.5% C 0.119 H 257.7°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#1F4D8E
RGBrgb(31, 77, 142)
HSLhsl(215, 64%, 34%)
HSVhsv(215, 78%, 56%)
CMYKcmyk(78.2%, 45.8%, 0%, 44.3%)
CIE-LABlab(33.03, 8.69, -40.52)
CIE-LCHlch(33.03, 41.44, 282.11°)
OKLaboklab(42.52% -0.0253 -0.1161)
OKLCHoklch(42.52% 0.119 257.7)
XYZxyz(8.0996, 7.5511, 26.6166)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D8E #8E601F
analogous
#1F858E #1F4D8E #291F8E
triadic
#1F4D8E #8E1F4D #4D8E1F
tetradic
#1F4D8E #8E1F85 #8E601F #1F8E29
square
#1F4D8E #8E1F85 #8E601F #1F8E29
split-complementary
#1F4D8E #8E291F #858E1F
monochromatic
#09172A #14325C #1F4D8E #2A68C0 #4F88D9

Accessibility & contrast

On white

8.37
#1F4D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#1F4D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4D8E
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D8E#FFFFFF#000000##FFFFFF
##1F4D8E1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5390
Deuteranopia (green-blind)
#14498D
Tritanopia (blue-blind)
#005C66
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4d8e;
/* rgb */ color: rgb(31, 77, 142);
/* oklch */ color: oklch(42.5% 0.119 257.7);
Tailwind
colors: {
  custom: {
    50: '#6c7eaf',
    500: '#1f4d8e',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d8e;
$custom-light: #6c7eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d8e",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 142
  },
  "hsl": {
    "h": 215.135,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42519,
    "c": 0.11884,
    "h": 257.7
  },
  "luminance": 0.07552
}

Semantic roles & 50–950 ramp

primary
#1F4D8E
secondary
#BB8E4D
accent
#A241E7
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1F4D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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