#1F4190#1F4190

#1F4190 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.0% C 0.137 H 263.8°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#1F4190
RGBrgb(31, 65, 144)
HSLhsl(222, 65%, 34%)
HSVhsv(222, 78%, 56%)
CMYKcmyk(78.5%, 54.9%, 0%, 43.5%)
CIE-LABlab(29.63, 17.68, -47.23)
CIE-LCHlch(29.63, 50.43, 290.52°)
OKLaboklab(39.96% -0.0149 -0.1361)
OKLCHoklch(39.96% 0.137 263.8)
XYZxyz(7.4876, 6.0847, 27.1600)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4190 #906E1F
analogous
#1F7A90 #1F4190 #361F90
triadic
#1F4190 #901F41 #41901F
tetradic
#1F4190 #901F7A #906E1F #1F9036
square
#1F4190 #901F7A #906E1F #1F9036
split-complementary
#1F4190 #90361F #7A901F
monochromatic
#09142B #142A5E #1F4190 #2A58C2 #5079D9

Accessibility & contrast

On white

9.47
#1F4190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#1F4190 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4190
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4190#FFFFFF#000000##FFFFFF
##1F41901.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024B93
Deuteranopia (green-blind)
#00418E
Tritanopia (blue-blind)
#005462
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f4190;
/* rgb */ color: rgb(31, 65, 144);
/* oklch */ color: oklch(40.0% 0.137 263.8);
Tailwind
colors: {
  custom: {
    50: '#6d75b1',
    500: '#1f4190',
    950: '#000000',
  },
}
SCSS
$custom: #1f4190;
$custom-light: #6d75b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4190",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 144
  },
  "hsl": {
    "h": 221.947,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39957,
    "c": 0.13693,
    "h": 263.8
  },
  "luminance": 0.06086
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F4190

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

Preview Lab → · Contrast checker → · Palette generator →

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