#1F4B9E#1F4B9E

#1F4B9E is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.3% C 0.144 H 261.6°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#1F4B9E
RGBrgb(31, 75, 158)
HSLhsl(219, 67%, 37%)
HSVhsv(219, 80%, 62%)
CMYKcmyk(80.4%, 52.5%, 0%, 38%)
CIE-LABlab(33.54, 16.44, -49.41)
CIE-LCHlch(33.54, 52.07, 288.41°)
OKLaboklab(43.27% -0.0211 -0.1423)
OKLCHoklch(43.27% 0.144 261.6)
XYZxyz(9.2505, 7.7910, 33.3574)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4B9E #9E721F
analogous
#1F8A9E #1F4B9E #331F9E
triadic
#1F4B9E #9E1F4B #4B9E1F
tetradic
#1F4B9E #9E1F8A #9E721F #1F9E33
square
#1F4B9E #9E1F8A #9E721F #1F9E33
split-complementary
#1F4B9E #9E331F #8A9E1F
monochromatic
#0B1A38 #15336B #1F4B9E #2963D1 #5987DE

Accessibility & contrast

On white

8.21
#1F4B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#1F4B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4B9E
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4B9E#FFFFFF#000000##FFFFFF
##1F4B9E1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1255A1
Deuteranopia (green-blind)
#00499C
Tritanopia (blue-blind)
#005F6D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f4b9e;
/* rgb */ color: rgb(31, 75, 158);
/* oklch */ color: oklch(43.3% 0.144 261.6);
Tailwind
colors: {
  custom: {
    50: '#707cbb',
    500: '#1f4b9e',
    950: '#000000',
  },
}
SCSS
$custom: #1f4b9e;
$custom-light: #707cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4b9e",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 158
  },
  "hsl": {
    "h": 219.213,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.43267,
    "c": 0.14387,
    "h": 261.6
  },
  "luminance": 0.07792
}

Semantic roles & 50–950 ramp

primary
#1F4B9E
secondary
#C29D56
accent
#AE3EEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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