#1F4D91#1F4D91

#1F4D91 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 42.7% C 0.123 H 258.4°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#1F4D91
RGBrgb(31, 77, 145)
HSLhsl(216, 65%, 35%)
HSVhsv(216, 79%, 57%)
CMYKcmyk(78.6%, 46.9%, 0%, 43.1%)
CIE-LABlab(33.23, 9.89, -42.03)
CIE-LCHlch(33.23, 43.18, 283.24°)
OKLaboklab(42.74% -0.0247 -0.1206)
OKLCHoklch(42.74% 0.123 258.4)
XYZxyz(8.3279, 7.6424, 27.8188)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D91 #91631F
analogous
#1F8691 #1F4D91 #2A1F91
triadic
#1F4D91 #911F4D #4D911F
tetradic
#1F4D91 #911F86 #91631F #1F912A
square
#1F4D91 #911F86 #91631F #1F912A
split-complementary
#1F4D91 #912A1F #86911F
monochromatic
#09172C #14325F #1F4D91 #2A68C3 #5188DA

Accessibility & contrast

On white

8.30
#1F4D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#1F4D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4D91
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D91#FFFFFF#000000##FFFFFF
##1F4D911.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295494
Deuteranopia (green-blind)
#0E4990
Tritanopia (blue-blind)
#005D68
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4d91;
/* rgb */ color: rgb(31, 77, 145);
/* oklch */ color: oklch(42.7% 0.123 258.4);
Tailwind
colors: {
  custom: {
    50: '#6c7eb2',
    500: '#1f4d91',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d91;
$custom-light: #6c7eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d91",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 145
  },
  "hsl": {
    "h": 215.789,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.42735,
    "c": 0.12309,
    "h": 258.4
  },
  "luminance": 0.07643
}

Semantic roles & 50–950 ramp

primary
#1F4D91
secondary
#BD904F
accent
#A440E8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4D91

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

Preview Lab → · Contrast checker → · Palette generator →

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