#1F4392#1F4392

#1F4392 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.6% C 0.137 H 263.2°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#1F4392
RGBrgb(31, 67, 146)
HSLhsl(221, 65%, 35%)
HSVhsv(221, 79%, 57%)
CMYKcmyk(78.8%, 54.1%, 0%, 42.7%)
CIE-LABlab(30.35, 17.10, -47.28)
CIE-LCHlch(30.35, 50.28, 289.89°)
OKLaboklab(40.56% -0.0163 -0.1362)
OKLCHoklch(40.56% 0.137 263.2)
XYZxyz(7.7587, 6.3801, 28.0111)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4392 #926E1F
analogous
#1F7D92 #1F4392 #341F92
triadic
#1F4392 #921F43 #43921F
tetradic
#1F4392 #921F7D #926E1F #1F9234
square
#1F4392 #921F7D #926E1F #1F9234
split-complementary
#1F4392 #92341F #7D921F
monochromatic
#0A152D #142C60 #1F4392 #2A5AC4 #517CDA

Accessibility & contrast

On white

9.23
#1F4392 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#1F4392 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4392
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4392#FFFFFF#000000##FFFFFF
##1F43921.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084D95
Deuteranopia (green-blind)
#004290
Tritanopia (blue-blind)
#005664
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f4392;
/* rgb */ color: rgb(31, 67, 146);
/* oklch */ color: oklch(40.6% 0.137 263.2);
Tailwind
colors: {
  custom: {
    50: '#6d76b3',
    500: '#1f4392',
    950: '#000000',
  },
}
SCSS
$custom: #1f4392;
$custom-light: #6d76b3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4392",
  "rgb": {
    "r": 31,
    "g": 67,
    "b": 146
  },
  "hsl": {
    "h": 221.217,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40556,
    "c": 0.13719,
    "h": 263.2
  },
  "luminance": 0.06381
}

Semantic roles & 50–950 ramp

primary
#1F4392
secondary
#BD9B50
accent
#B340E8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4392

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

Preview Lab → · Contrast checker → · Palette generator →

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