#1F4D9E#1F4D9E

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

Color values

HEX#1F4D9E
RGBrgb(31, 77, 158)
HSLhsl(218, 67%, 37%)
HSVhsv(218, 80%, 62%)
CMYKcmyk(80.4%, 51.3%, 0%, 38%)
CIE-LABlab(34.12, 15.09, -48.47)
CIE-LCHlch(34.12, 50.77, 287.29°)
OKLaboklab(43.71% -0.0226 -0.1395)
OKLCHoklch(43.71% 0.141 260.8)
XYZxyz(9.3883, 8.0666, 33.4033)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D9E #9E701F
analogous
#1F8D9E #1F4D9E #311F9E
triadic
#1F4D9E #9E1F4D #4D9E1F
tetradic
#1F4D9E #9E1F8D #9E701F #1F9E31
square
#1F4D9E #9E1F8D #9E701F #1F9E31
split-complementary
#1F4D9E #9E311F #8D9E1F
monochromatic
#0B1B38 #15346B #1F4D9E #2966D1 #5989DE

Accessibility & contrast

On white

8.03
#1F4D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#1F4D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4D9E
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D9E#FFFFFF#000000##FFFFFF
##1F4D9E1.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A56A1
Deuteranopia (green-blind)
#004B9C
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f4d9e;
/* rgb */ color: rgb(31, 77, 158);
/* oklch */ color: oklch(43.7% 0.141 260.8);
Tailwind
colors: {
  custom: {
    50: '#707ebb',
    500: '#1f4d9e',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d9e;
$custom-light: #707ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d9e",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 158
  },
  "hsl": {
    "h": 218.268,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.43708,
    "c": 0.14134,
    "h": 260.8
  },
  "luminance": 0.08068
}

Semantic roles & 50–950 ramp

primary
#1F4D9E
secondary
#C29B56
accent
#AC3EEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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