#1F4088#1F4088

#1F4088 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.1% C 0.127 H 263.2°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#1F4088
RGBrgb(31, 64, 136)
HSLhsl(221, 63%, 33%)
HSVhsv(221, 77%, 53%)
CMYKcmyk(77.2%, 52.9%, 0%, 46.7%)
CIE-LABlab(28.73, 15.17, -43.74)
CIE-LCHlch(28.73, 46.30, 289.12°)
OKLaboklab(39.09% -0.0149 -0.1259)
OKLCHoklch(39.09% 0.127 263.2)
XYZxyz(6.8408, 5.7349, 24.0342)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4088 #88671F
analogous
#1F7488 #1F4088 #331F88
triadic
#1F4088 #881F40 #40881F
tetradic
#1F4088 #881F74 #88671F #1F8833
square
#1F4088 #881F74 #88671F #1F8833
split-complementary
#1F4088 #88331F #74881F
monochromatic
#081124 #142956 #1F4088 #2A57BA #4B77D6

Accessibility & contrast

On white

9.78
#1F4088 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#1F4088 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4088
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4088#FFFFFF#000000##FFFFFF
##1F40881.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11498B
Deuteranopia (green-blind)
#003F87
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f4088;
/* rgb */ color: rgb(31, 64, 136);
/* oklch */ color: oklch(39.1% 0.127 263.2);
Tailwind
colors: {
  custom: {
    50: '#6b74ab',
    500: '#1f4088',
    950: '#000000',
  },
}
SCSS
$custom: #1f4088;
$custom-light: #6b74ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4088",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 136
  },
  "hsl": {
    "h": 221.143,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39089,
    "c": 0.12675,
    "h": 263.2
  },
  "luminance": 0.05736
}

Semantic roles & 50–950 ramp

primary
#1F4088
secondary
#B9964A
accent
#B242E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1F4088

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

Preview Lab → · Contrast checker → · Palette generator →

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