#1F4494#1F4494

#1F4494 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 40.9% C 0.139 H 263.0°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#1F4494
RGBrgb(31, 68, 148)
HSLhsl(221, 65%, 35%)
HSVhsv(221, 79%, 58%)
CMYKcmyk(79.1%, 54.1%, 0%, 42%)
CIE-LABlab(30.79, 17.22, -47.80)
CIE-LCHlch(30.79, 50.80, 289.81°)
OKLaboklab(40.94% -0.0168 -0.1377)
OKLCHoklch(40.94% 0.139 263)
XYZxyz(7.9756, 6.5628, 28.8576)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4494 #946F1F
analogous
#1F7E94 #1F4494 #351F94
triadic
#1F4494 #941F44 #44941F
tetradic
#1F4494 #941F7E #946F1F #1F9435
square
#1F4494 #941F7E #946F1F #1F9435
split-complementary
#1F4494 #94351F #7E941F
monochromatic
#0A162F #142D61 #1F4494 #2A5BC7 #537EDB

Accessibility & contrast

On white

9.08
#1F4494 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#1F4494 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4494
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4494#FFFFFF#000000##FFFFFF
##1F44941.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074E97
Deuteranopia (green-blind)
#004392
Tritanopia (blue-blind)
#005765
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f4494;
/* rgb */ color: rgb(31, 68, 148);
/* oklch */ color: oklch(40.9% 0.139 263.0);
Tailwind
colors: {
  custom: {
    50: '#6e77b4',
    500: '#1f4494',
    950: '#000000',
  },
}
SCSS
$custom: #1f4494;
$custom-light: #6e77b4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4494",
  "rgb": {
    "r": 31,
    "g": 68,
    "b": 148
  },
  "hsl": {
    "h": 221.026,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40937,
    "c": 0.13873,
    "h": 263
  },
  "luminance": 0.06564
}

Semantic roles & 50–950 ramp

primary
#1F4494
secondary
#BE9C51
accent
#B33FE8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4494

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

Preview Lab → · Contrast checker → · Palette generator →

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