#1F4191#1F4191

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

Color values

HEX#1F4191
RGBrgb(31, 65, 145)
HSLhsl(222, 65%, 35%)
HSVhsv(222, 79%, 57%)
CMYKcmyk(78.6%, 55.2%, 0%, 43.1%)
CIE-LABlab(29.70, 18.08, -47.72)
CIE-LCHlch(29.70, 51.03, 290.75°)
OKLaboklab(40.04% -0.0148 -0.1376)
OKLCHoklch(40.04% 0.138 263.9)
XYZxyz(7.5644, 6.1154, 27.5643)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4191 #916F1F
analogous
#1F7A91 #1F4191 #361F91
triadic
#1F4191 #911F41 #41911F
tetradic
#1F4191 #911F7A #916F1F #1F9136
square
#1F4191 #911F7A #916F1F #1F9136
split-complementary
#1F4191 #91361F #7A911F
monochromatic
#09142C #142A5F #1F4191 #2A58C3 #517ADA

Accessibility & contrast

On white

9.45
#1F4191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4191
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4191#FFFFFF#000000##FFFFFF
##1F41911.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B94
Deuteranopia (green-blind)
#00418F
Tritanopia (blue-blind)
#005562
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f4191;
/* rgb */ color: rgb(31, 65, 145);
/* oklch */ color: oklch(40.0% 0.138 263.9);
Tailwind
colors: {
  custom: {
    50: '#6d75b2',
    500: '#1f4191',
    950: '#000000',
  },
}
SCSS
$custom: #1f4191;
$custom-light: #6d75b2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4191",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 145
  },
  "hsl": {
    "h": 222.105,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.4004,
    "c": 0.13835,
    "h": 263.9
  },
  "luminance": 0.06116
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F4191

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

Preview Lab → · Contrast checker → · Palette generator →

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