#1F4192#1F4192

#1F4192 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.1% C 0.140 H 264.0°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#1F4192
RGBrgb(31, 65, 146)
HSLhsl(222, 65%, 35%)
HSVhsv(222, 79%, 57%)
CMYKcmyk(78.8%, 55.5%, 0%, 42.7%)
CIE-LABlab(29.78, 18.48, -48.21)
CIE-LCHlch(29.78, 51.63, 290.97°)
OKLaboklab(40.12% -0.0147 -0.139)
OKLCHoklch(40.12% 0.14 264)
XYZxyz(7.6418, 6.1464, 27.9722)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4192 #92701F
analogous
#1F7B92 #1F4192 #371F92
triadic
#1F4192 #921F41 #41921F
tetradic
#1F4192 #921F7B #92701F #1F9237
square
#1F4192 #921F7B #92701F #1F9237
split-complementary
#1F4192 #92371F #7B921F
monochromatic
#0A142D #142B60 #1F4192 #2A57C4 #517ADA

Accessibility & contrast

On white

9.42
#1F4192 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#1F4192 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4192
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4192#FFFFFF#000000##FFFFFF
##1F41921.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C95
Deuteranopia (green-blind)
#004190
Tritanopia (blue-blind)
#005563
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f4192;
/* rgb */ color: rgb(31, 65, 146);
/* oklch */ color: oklch(40.1% 0.140 264.0);
Tailwind
colors: {
  custom: {
    50: '#6d75b3',
    500: '#1f4192',
    950: '#000000',
  },
}
SCSS
$custom: #1f4192;
$custom-light: #6d75b3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4192",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 146
  },
  "hsl": {
    "h": 222.261,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40122,
    "c": 0.13977,
    "h": 264
  },
  "luminance": 0.06147
}

Semantic roles & 50–950 ramp

primary
#1F4192
secondary
#BD9D50
accent
#B640E8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4192

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

Preview Lab → · Contrast checker → · Palette generator →

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