#1F4E9F#1F4E9F

#1F4E9F is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.0% C 0.141 H 260.5°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#1F4E9F
RGBrgb(31, 78, 159)
HSLhsl(218, 67%, 37%)
HSVhsv(218, 81%, 62%)
CMYKcmyk(80.5%, 50.9%, 0%, 37.6%)
CIE-LABlab(34.48, 14.81, -48.49)
CIE-LCHlch(34.48, 50.70, 286.99°)
OKLaboklab(44.01% -0.0233 -0.1396)
OKLCHoklch(44.01% 0.141 260.5)
XYZxyz(9.5452, 8.2422, 33.8820)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E9F #9F701F
analogous
#1F8E9F #1F4E9F #301F9F
triadic
#1F4E9F #9F1F4E #4E9F1F
tetradic
#1F4E9F #9F1F8E #9F701F #1F9F30
square
#1F4E9F #9F1F8E #9F701F #1F9F30
split-complementary
#1F4E9F #9F301F #8E9F1F
monochromatic
#0B1C39 #15356C #1F4E9F #2967D2 #5A8BDF

Accessibility & contrast

On white

7.93
#1F4E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#1F4E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E9F
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E9F#FFFFFF#000000##FFFFFF
##1F4E9F1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B57A2
Deuteranopia (green-blind)
#004C9D
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f4e9f;
/* rgb */ color: rgb(31, 78, 159);
/* oklch */ color: oklch(44.0% 0.141 260.5);
Tailwind
colors: {
  custom: {
    50: '#707ebc',
    500: '#1f4e9f',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e9f;
$custom-light: #707ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e9f",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 159
  },
  "hsl": {
    "h": 217.969,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.44006,
    "c": 0.14149,
    "h": 260.5
  },
  "luminance": 0.08243
}

Semantic roles & 50–950 ramp

primary
#1F4E9F
secondary
#C39B57
accent
#AB3EEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F4E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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