#1F4894#1F4894

#1F4894 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 41.8% C 0.134 H 261.4°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#1F4894
RGBrgb(31, 72, 148)
HSLhsl(219, 65%, 35%)
HSVhsv(219, 79%, 58%)
CMYKcmyk(79.1%, 51.4%, 0%, 42%)
CIE-LABlab(31.95, 14.48, -45.92)
CIE-LCHlch(31.95, 48.15, 287.50°)
OKLaboklab(41.82% -0.02 -0.1321)
OKLCHoklch(41.82% 0.134 261.4)
XYZxyz(8.2258, 7.0632, 28.9410)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4894 #946B1F
analogous
#1F8394 #1F4894 #301F94
triadic
#1F4894 #941F48 #48941F
tetradic
#1F4894 #941F83 #946B1F #1F9430
square
#1F4894 #941F83 #946B1F #1F9430
split-complementary
#1F4894 #94301F #83941F
monochromatic
#0A172F #142F61 #1F4894 #2A61C7 #5382DB

Accessibility & contrast

On white

8.70
#1F4894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#1F4894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4894
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4894#FFFFFF#000000##FFFFFF
##1F48941.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195197
Deuteranopia (green-blind)
#004692
Tritanopia (blue-blind)
#005A67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f4894;
/* rgb */ color: rgb(31, 72, 148);
/* oklch */ color: oklch(41.8% 0.134 261.4);
Tailwind
colors: {
  custom: {
    50: '#6d7ab4',
    500: '#1f4894',
    950: '#000000',
  },
}
SCSS
$custom: #1f4894;
$custom-light: #6d7ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4894",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 148
  },
  "hsl": {
    "h": 218.974,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41821,
    "c": 0.13362,
    "h": 261.4
  },
  "luminance": 0.07064
}

Semantic roles & 50–950 ramp

primary
#1F4894
secondary
#BE9851
accent
#AD3FE8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4894

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

Preview Lab → · Contrast checker → · Palette generator →

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