#1F4A94#1F4A94

#1F4A94 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.3% C 0.131 H 260.5°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#1F4A94
RGBrgb(31, 74, 148)
HSLhsl(218, 65%, 35%)
HSVhsv(218, 79%, 58%)
CMYKcmyk(79.1%, 50%, 0%, 42%)
CIE-LABlab(32.54, 13.12, -44.97)
CIE-LCHlch(32.54, 46.85, 286.27°)
OKLaboklab(42.27% -0.0217 -0.1293)
OKLCHoklch(42.27% 0.131 260.5)
XYZxyz(8.3572, 7.3260, 28.9848)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4A94 #94691F
analogous
#1F8494 #1F4A94 #2F1F94
triadic
#1F4A94 #941F4A #4A941F
tetradic
#1F4A94 #941F84 #94691F #1F942F
square
#1F4A94 #941F84 #94691F #1F942F
split-complementary
#1F4A94 #942F1F #84941F
monochromatic
#0A172F #143161 #1F4A94 #2A63C7 #5385DB

Accessibility & contrast

On white

8.52
#1F4A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#1F4A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4A94
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4A94#FFFFFF#000000##FFFFFF
##1F4A941.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5297
Deuteranopia (green-blind)
#004893
Tritanopia (blue-blind)
#005C68
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4a94;
/* rgb */ color: rgb(31, 74, 148);
/* oklch */ color: oklch(42.3% 0.131 260.5);
Tailwind
colors: {
  custom: {
    50: '#6d7bb4',
    500: '#1f4a94',
    950: '#000000',
  },
}
SCSS
$custom: #1f4a94;
$custom-light: #6d7bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4a94",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 148
  },
  "hsl": {
    "h": 217.949,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4227,
    "c": 0.13108,
    "h": 260.5
  },
  "luminance": 0.07327
}

Semantic roles & 50–950 ramp

primary
#1F4A94
secondary
#BE9651
accent
#AA3FE8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4A94

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

Preview Lab → · Contrast checker → · Palette generator →

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