#1F4E90#1F4E90

#1F4E90 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 42.9% C 0.120 H 257.6°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#1F4E90
RGBrgb(31, 78, 144)
HSLhsl(215, 65%, 34%)
HSVhsv(215, 78%, 56%)
CMYKcmyk(78.5%, 45.8%, 0%, 43.5%)
CIE-LABlab(33.46, 8.82, -41.05)
CIE-LCHlch(33.46, 41.98, 282.13°)
OKLaboklab(42.9% -0.0258 -0.1176)
OKLCHoklch(42.9% 0.12 257.6)
XYZxyz(8.3217, 7.7527, 27.4380)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E90 #90611F
analogous
#1F8790 #1F4E90 #291F90
triadic
#1F4E90 #901F4E #4E901F
tetradic
#1F4E90 #901F87 #90611F #1F9029
square
#1F4E90 #901F87 #90611F #1F9029
split-complementary
#1F4E90 #90291F #87901F
monochromatic
#09172B #14335E #1F4E90 #2A69C2 #5089D9

Accessibility & contrast

On white

8.23
#1F4E90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4E90
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E90#FFFFFF#000000##FFFFFF
##1F4E901.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5493
Deuteranopia (green-blind)
#144A8F
Tritanopia (blue-blind)
#005E68
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f4e90;
/* rgb */ color: rgb(31, 78, 144);
/* oklch */ color: oklch(42.9% 0.120 257.6);
Tailwind
colors: {
  custom: {
    50: '#6c7fb1',
    500: '#1f4e90',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e90;
$custom-light: #6c7fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e90",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 144
  },
  "hsl": {
    "h": 215.044,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.42896,
    "c": 0.12045,
    "h": 257.6
  },
  "luminance": 0.07754
}

Semantic roles & 50–950 ramp

primary
#1F4E90
secondary
#BC8F4E
accent
#A240E8
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1F4E90

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

Preview Lab → · Contrast checker → · Palette generator →

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