#1F4BA8#1F4BA8

#1F4BA8 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.1% C 0.158 H 262.7°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#1F4BA8
RGBrgb(31, 75, 168)
HSLhsl(221, 69%, 39%)
HSVhsv(221, 82%, 66%)
CMYKcmyk(81.5%, 55.4%, 0%, 34.1%)
CIE-LABlab(34.29, 20.41, -54.20)
CIE-LCHlch(34.29, 57.91, 290.64°)
OKLaboklab(44.07% -0.0201 -0.1564)
OKLCHoklch(44.07% 0.158 262.7)
XYZxyz(10.1465, 8.1494, 38.0764)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4BA8 #A87C1F
analogous
#1F90A8 #1F4BA8 #381FA8
triadic
#1F4BA8 #A81F4B #4BA81F
tetradic
#1F4BA8 #A81F90 #A87C1F #1FA838
square
#1F4BA8 #A81F90 #A87C1F #1FA838
split-complementary
#1F4BA8 #A8381F #90A81F
monochromatic
#0C1D41 #153474 #1F4BA8 #2C63D8 #6089E2

Accessibility & contrast

On white

7.98
#1F4BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#1F4BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4BA8
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4BA8#FFFFFF#000000##FFFFFF
##1F4BA81.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AB
Deuteranopia (green-blind)
#004BA6
Tritanopia (blue-blind)
#006272
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f4ba8;
/* rgb */ color: rgb(31, 75, 168);
/* oklch */ color: oklch(44.1% 0.158 262.7);
Tailwind
colors: {
  custom: {
    50: '#727cc3',
    500: '#1f4ba8',
    950: '#000000',
  },
}
SCSS
$custom: #1f4ba8;
$custom-light: #727cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4ba8",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 168
  },
  "hsl": {
    "h": 220.73,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.44072,
    "c": 0.15768,
    "h": 262.7
  },
  "luminance": 0.08151
}

Semantic roles & 50–950 ramp

primary
#1F4BA8
secondary
#C6A45D
accent
#B33CEC
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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