#1F4495#1F4495

#1F4495 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.0% C 0.140 H 263.1°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#1F4495
RGBrgb(31, 68, 149)
HSLhsl(221, 66%, 35%)
HSVhsv(221, 79%, 58%)
CMYKcmyk(79.2%, 54.4%, 0%, 41.6%)
CIE-LABlab(30.87, 17.62, -48.28)
CIE-LCHlch(30.87, 51.40, 290.05°)
OKLaboklab(41.02% -0.0167 -0.1391)
OKLCHoklch(41.02% 0.14 263.1)
XYZxyz(8.0551, 6.5945, 29.2763)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4495 #95701F
analogous
#1F7F95 #1F4495 #351F95
triadic
#1F4495 #951F44 #44951F
tetradic
#1F4495 #951F7F #95701F #1F9535
square
#1F4495 #951F7F #95701F #1F9535
split-complementary
#1F4495 #95351F #7F951F
monochromatic
#0A1630 #142D62 #1F4495 #2A5BC8 #537EDB

Accessibility & contrast

On white

9.06
#1F4495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#1F4495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4495
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4495#FFFFFF#000000##FFFFFF
##1F44951.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044E98
Deuteranopia (green-blind)
#004393
Tritanopia (blue-blind)
#005865
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f4495;
/* rgb */ color: rgb(31, 68, 149);
/* oklch */ color: oklch(41.0% 0.140 263.1);
Tailwind
colors: {
  custom: {
    50: '#6e77b5',
    500: '#1f4495',
    950: '#000000',
  },
}
SCSS
$custom: #1f4495;
$custom-light: #6e77b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4495",
  "rgb": {
    "r": 31,
    "g": 68,
    "b": 149
  },
  "hsl": {
    "h": 221.186,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41018,
    "c": 0.14015,
    "h": 263.1
  },
  "luminance": 0.06595
}

Semantic roles & 50–950 ramp

primary
#1F4495
secondary
#BF9C51
accent
#B33FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4495

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

Preview Lab → · Contrast checker → · Palette generator →

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