#1F4A92#1F4A92

#1F4A92 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.1% C 0.128 H 260.1°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#1F4A92
RGBrgb(31, 74, 146)
HSLhsl(218, 65%, 35%)
HSVhsv(218, 79%, 57%)
CMYKcmyk(78.8%, 49.3%, 0%, 42.7%)
CIE-LABlab(32.40, 12.32, -43.98)
CIE-LCHlch(32.40, 45.67, 285.65°)
OKLaboklab(42.12% -0.022 -0.1263)
OKLCHoklch(42.12% 0.128 260.1)
XYZxyz(8.2003, 7.2632, 28.1583)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4A92 #92671F
analogous
#1F8492 #1F4A92 #2D1F92
triadic
#1F4A92 #921F4A #4A921F
tetradic
#1F4A92 #921F84 #92671F #1F922D
square
#1F4A92 #921F84 #92671F #1F922D
split-complementary
#1F4A92 #922D1F #84921F
monochromatic
#0A172D #143060 #1F4A92 #2A64C4 #5184DA

Accessibility & contrast

On white

8.56
#1F4A92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#1F4A92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4A92
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4A92#FFFFFF#000000##FFFFFF
##1F4A921.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215295
Deuteranopia (green-blind)
#004791
Tritanopia (blue-blind)
#005B67
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f4a92;
/* rgb */ color: rgb(31, 74, 146);
/* oklch */ color: oklch(42.1% 0.128 260.1);
Tailwind
colors: {
  custom: {
    50: '#6d7bb2',
    500: '#1f4a92',
    950: '#000000',
  },
}
SCSS
$custom: #1f4a92;
$custom-light: #6d7bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4a92",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 146
  },
  "hsl": {
    "h": 217.565,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.42119,
    "c": 0.12825,
    "h": 260.1
  },
  "luminance": 0.07264
}

Semantic roles & 50–950 ramp

primary
#1F4A92
secondary
#BD9450
accent
#A940E8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4A92

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

Preview Lab → · Contrast checker → · Palette generator →

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