#1F4F93#1F4F93

#1F4F93 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.3% C 0.123 H 257.8°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#1F4F93
RGBrgb(31, 79, 147)
HSLhsl(215, 65%, 35%)
HSVhsv(215, 79%, 58%)
CMYKcmyk(78.9%, 46.3%, 0%, 42.4%)
CIE-LABlab(33.96, 9.35, -42.08)
CIE-LCHlch(33.96, 43.10, 282.53°)
OKLaboklab(43.34% -0.0261 -0.1207)
OKLCHoklch(43.34% 0.123 257.8)
XYZxyz(8.6256, 7.9889, 28.6855)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F93 #93631F
analogous
#1F8993 #1F4F93 #291F93
triadic
#1F4F93 #931F4F #4F931F
tetradic
#1F4F93 #931F89 #93631F #1F9329
square
#1F4F93 #931F89 #93631F #1F9329
split-complementary
#1F4F93 #93291F #89931F
monochromatic
#0A192E #143460 #1F4F93 #2A6AC6 #528ADA

Accessibility & contrast

On white

8.08
#1F4F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#1F4F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F93
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F93#FFFFFF#000000##FFFFFF
##1F4F931.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5696
Deuteranopia (green-blind)
#114B92
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f4f93;
/* rgb */ color: rgb(31, 79, 147);
/* oklch */ color: oklch(43.3% 0.123 257.8);
Tailwind
colors: {
  custom: {
    50: '#6d7fb3',
    500: '#1f4f93',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f93;
$custom-light: #6d7fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f93",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 147
  },
  "hsl": {
    "h": 215.172,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.43343,
    "c": 0.12345,
    "h": 257.8
  },
  "luminance": 0.0799
}

Semantic roles & 50–950 ramp

primary
#1F4F93
secondary
#BE9050
accent
#A240E8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1F4F93

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

Preview Lab → · Contrast checker → · Palette generator →

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