#1F4491#1F4491

#1F4491 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 40.7% C 0.134 H 262.7°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#1F4491
RGBrgb(31, 68, 145)
HSLhsl(221, 65%, 35%)
HSVhsv(221, 79%, 57%)
CMYKcmyk(78.6%, 53.1%, 0%, 43.1%)
CIE-LABlab(30.57, 16.02, -46.32)
CIE-LCHlch(30.57, 49.01, 289.07°)
OKLaboklab(40.7% -0.0172 -0.1334)
OKLCHoklch(40.7% 0.134 262.7)
XYZxyz(7.7412, 6.4690, 27.6232)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4491 #916C1F
analogous
#1F7D91 #1F4491 #331F91
triadic
#1F4491 #911F44 #44911F
tetradic
#1F4491 #911F7D #916C1F #1F9133
square
#1F4491 #911F7D #916C1F #1F9133
split-complementary
#1F4491 #91331F #7D911F
monochromatic
#09152C #142C5F #1F4491 #2A5CC3 #517DDA

Accessibility & contrast

On white

9.15
#1F4491 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#1F4491 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4491
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4491#FFFFFF#000000##FFFFFF
##1F44911.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4D94
Deuteranopia (green-blind)
#00438F
Tritanopia (blue-blind)
#005763
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f4491;
/* rgb */ color: rgb(31, 68, 145);
/* oklch */ color: oklch(40.7% 0.134 262.7);
Tailwind
colors: {
  custom: {
    50: '#6d77b2',
    500: '#1f4491',
    950: '#000000',
  },
}
SCSS
$custom: #1f4491;
$custom-light: #6d77b2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4491",
  "rgb": {
    "r": 31,
    "g": 68,
    "b": 145
  },
  "hsl": {
    "h": 220.526,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40696,
    "c": 0.13448,
    "h": 262.7
  },
  "luminance": 0.0647
}

Semantic roles & 50–950 ramp

primary
#1F4491
secondary
#BD994F
accent
#B140E8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4491

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

Preview Lab → · Contrast checker → · Palette generator →

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