#1F4292#1F4292

#1F4292 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.3% C 0.138 H 263.6°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#1F4292
RGBrgb(31, 66, 146)
HSLhsl(222, 65%, 35%)
HSVhsv(222, 79%, 57%)
CMYKcmyk(78.8%, 54.8%, 0%, 42.7%)
CIE-LABlab(30.06, 17.79, -47.75)
CIE-LCHlch(30.06, 50.96, 290.44°)
OKLaboklab(40.34% -0.0155 -0.1376)
OKLCHoklch(40.34% 0.138 263.6)
XYZxyz(7.6997, 6.2622, 27.9915)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4292 #926F1F
analogous
#1F7C92 #1F4292 #351F92
triadic
#1F4292 #921F42 #42921F
tetradic
#1F4292 #921F7C #926F1F #1F9235
square
#1F4292 #921F7C #926F1F #1F9235
split-complementary
#1F4292 #92351F #7C921F
monochromatic
#0A142D #142B60 #1F4292 #2A59C4 #517BDA

Accessibility & contrast

On white

9.32
#1F4292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#1F4292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4292
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4292#FFFFFF#000000##FFFFFF
##1F42921.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024C95
Deuteranopia (green-blind)
#004290
Tritanopia (blue-blind)
#005663
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f4292;
/* rgb */ color: rgb(31, 66, 146);
/* oklch */ color: oklch(40.3% 0.138 263.6);
Tailwind
colors: {
  custom: {
    50: '#6d75b3',
    500: '#1f4292',
    950: '#000000',
  },
}
SCSS
$custom: #1f4292;
$custom-light: #6d75b3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4292",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 146
  },
  "hsl": {
    "h": 221.739,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40339,
    "c": 0.13848,
    "h": 263.6
  },
  "luminance": 0.06263
}

Semantic roles & 50–950 ramp

primary
#1F4292
secondary
#BD9C50
accent
#B540E8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4292

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

Preview Lab → · Contrast checker → · Palette generator →

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