#1F4A91#1F4A91

#1F4A91 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.0% C 0.127 H 260.0°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#1F4A91
RGBrgb(31, 74, 145)
HSLhsl(217, 65%, 35%)
HSVhsv(217, 79%, 57%)
CMYKcmyk(78.6%, 49%, 0%, 43.1%)
CIE-LABlab(32.33, 11.92, -43.48)
CIE-LCHlch(32.33, 45.08, 285.33°)
OKLaboklab(42.04% -0.0221 -0.1249)
OKLCHoklch(42.04% 0.127 260)
XYZxyz(8.1228, 7.2323, 27.7504)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4A91 #91661F
analogous
#1F8391 #1F4A91 #2D1F91
triadic
#1F4A91 #911F4A #4A911F
tetradic
#1F4A91 #911F83 #91661F #1F912D
square
#1F4A91 #911F83 #91661F #1F912D
split-complementary
#1F4A91 #912D1F #83911F
monochromatic
#09172C #14305F #1F4A91 #2A64C3 #5184DA

Accessibility & contrast

On white

8.58
#1F4A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#1F4A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4A91
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4A91#FFFFFF#000000##FFFFFF
##1F4A911.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225294
Deuteranopia (green-blind)
#004790
Tritanopia (blue-blind)
#005B66
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f4a91;
/* rgb */ color: rgb(31, 74, 145);
/* oklch */ color: oklch(42.0% 0.127 260.0);
Tailwind
colors: {
  custom: {
    50: '#6d7bb2',
    500: '#1f4a91',
    950: '#000000',
  },
}
SCSS
$custom: #1f4a91;
$custom-light: #6d7bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4a91",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 145
  },
  "hsl": {
    "h": 217.368,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.42044,
    "c": 0.12683,
    "h": 260
  },
  "luminance": 0.07233
}

Semantic roles & 50–950 ramp

primary
#1F4A91
secondary
#BD934F
accent
#A840E8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4A91

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

Preview Lab → · Contrast checker → · Palette generator →

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