#1F4D9B#1F4D9B

#1F4D9B is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.5% C 0.137 H 260.3°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#1F4D9B
RGBrgb(31, 77, 155)
HSLhsl(218, 67%, 36%)
HSVhsv(218, 80%, 61%)
CMYKcmyk(80%, 50.3%, 0%, 39.2%)
CIE-LABlab(33.91, 13.89, -47.01)
CIE-LCHlch(33.91, 49.01, 286.46°)
OKLaboklab(43.48% -0.0231 -0.1352)
OKLCHoklch(43.48% 0.137 260.3)
XYZxyz(9.1332, 7.9645, 32.0599)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D9B #9B6D1F
analogous
#1F8B9B #1F4D9B #2F1F9B
triadic
#1F4D9B #9B1F4D #4D9B1F
tetradic
#1F4D9B #9B1F8B #9B6D1F #1F9B2F
square
#1F4D9B #9B1F8B #9B6D1F #1F9B2F
split-complementary
#1F4D9B #9B2F1F #8B9B1F
monochromatic
#0B1A35 #153468 #1F4D9B #2966CE #5789DD

Accessibility & contrast

On white

8.10
#1F4D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#1F4D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4D9B
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D9B#FFFFFF#000000##FFFFFF
##1F4D9B1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E569E
Deuteranopia (green-blind)
#004A99
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f4d9b;
/* rgb */ color: rgb(31, 77, 155);
/* oklch */ color: oklch(43.5% 0.137 260.3);
Tailwind
colors: {
  custom: {
    50: '#6f7eb9',
    500: '#1f4d9b',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d9b;
$custom-light: #6f7eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d9b",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 155
  },
  "hsl": {
    "h": 217.742,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.43478,
    "c": 0.13716,
    "h": 260.3
  },
  "luminance": 0.07966
}

Semantic roles & 50–950 ramp

primary
#1F4D9B
secondary
#C19955
accent
#AA3EEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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