#1F4E9B#1F4E9B

#1F4E9B is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.7% C 0.136 H 259.9°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#1F4E9B
RGBrgb(31, 78, 155)
HSLhsl(217, 67%, 36%)
HSVhsv(217, 80%, 61%)
CMYKcmyk(80%, 49.7%, 0%, 39.2%)
CIE-LABlab(34.20, 13.22, -46.53)
CIE-LCHlch(34.20, 48.37, 285.86°)
OKLaboklab(43.7% -0.0239 -0.1338)
OKLCHoklch(43.7% 0.136 259.9)
XYZxyz(9.2037, 8.1056, 32.0834)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E9B #9B6C1F
analogous
#1F8C9B #1F4E9B #2E1F9B
triadic
#1F4E9B #9B1F4E #4E9B1F
tetradic
#1F4E9B #9B1F8C #9B6C1F #1F9B2E
square
#1F4E9B #9B1F8C #9B6C1F #1F9B2E
split-complementary
#1F4E9B #9B2E1F #8C9B1F
monochromatic
#0B1B35 #153468 #1F4E9B #2968CE #578ADD

Accessibility & contrast

On white

8.01
#1F4E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#1F4E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E9B
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E9B#FFFFFF#000000##FFFFFF
##1F4E9B1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21569E
Deuteranopia (green-blind)
#004B99
Tritanopia (blue-blind)
#00606D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f4e9b;
/* rgb */ color: rgb(31, 78, 155);
/* oklch */ color: oklch(43.7% 0.136 259.9);
Tailwind
colors: {
  custom: {
    50: '#6f7fb9',
    500: '#1f4e9b',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e9b;
$custom-light: #6f7fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e9b",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 155
  },
  "hsl": {
    "h": 217.258,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.43702,
    "c": 0.13591,
    "h": 259.9
  },
  "luminance": 0.08107
}

Semantic roles & 50–950 ramp

primary
#1F4E9B
secondary
#C19855
accent
#A93EEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1F4E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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