#1F4A8F#1F4A8F

#1F4A8F is a dark, vivid blue. Relative luminance 0.072; OKLCH L 41.9% C 0.124 H 259.6°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#1F4A8F
RGBrgb(31, 74, 143)
HSLhsl(217, 64%, 34%)
HSVhsv(217, 78%, 56%)
CMYKcmyk(78.3%, 48.3%, 0%, 43.9%)
CIE-LABlab(32.19, 11.12, -42.47)
CIE-LCHlch(32.19, 43.91, 284.67°)
OKLaboklab(41.9% -0.0225 -0.1219)
OKLCHoklch(41.9% 0.124 259.6)
XYZxyz(7.9700, 7.1711, 26.9454)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4A8F #8F641F
analogous
#1F828F #1F4A8F #2C1F8F
triadic
#1F4A8F #8F1F4A #4A8F1F
tetradic
#1F4A8F #8F1F82 #8F641F #1F8F2C
square
#1F4A8F #8F1F82 #8F641F #1F8F2C
split-complementary
#1F4A8F #8F2C1F #828F1F
monochromatic
#09162A #14305D #1F4A8F #2A64C1 #4F84D9

Accessibility & contrast

On white

8.63
#1F4A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#1F4A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4A8F
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4A8F#FFFFFF#000000##FFFFFF
##1F4A8F1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245192
Deuteranopia (green-blind)
#04478E
Tritanopia (blue-blind)
#005A65
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f4a8f;
/* rgb */ color: rgb(31, 74, 143);
/* oklch */ color: oklch(41.9% 0.124 259.6);
Tailwind
colors: {
  custom: {
    50: '#6c7bb0',
    500: '#1f4a8f',
    950: '#000000',
  },
}
SCSS
$custom: #1f4a8f;
$custom-light: #6c7bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4a8f",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 143
  },
  "hsl": {
    "h": 216.964,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41896,
    "c": 0.12398,
    "h": 259.6
  },
  "luminance": 0.07172
}

Semantic roles & 50–950 ramp

primary
#1F4A8F
secondary
#BC924E
accent
#A740E7
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #1F4A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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