#1F4CA8#1F4CA8

#1F4CA8 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.3% C 0.156 H 262.4°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#1F4CA8
RGBrgb(31, 76, 168)
HSLhsl(220, 69%, 39%)
HSVhsv(220, 82%, 66%)
CMYKcmyk(81.5%, 54.8%, 0%, 34.1%)
CIE-LABlab(34.57, 19.74, -53.74)
CIE-LCHlch(34.57, 57.25, 290.17°)
OKLaboklab(44.28% -0.0208 -0.155)
OKLCHoklch(44.28% 0.156 262.4)
XYZxyz(10.2149, 8.2861, 38.0992)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4CA8 #A87B1F
analogous
#1F91A8 #1F4CA8 #371FA8
triadic
#1F4CA8 #A81F4C #4CA81F
tetradic
#1F4CA8 #A81F91 #A87B1F #1FA837
square
#1F4CA8 #A81F91 #A87B1F #1FA837
split-complementary
#1F4CA8 #A8371F #91A81F
monochromatic
#0C1D41 #153574 #1F4CA8 #2C65D8 #608AE2

Accessibility & contrast

On white

7.90
#1F4CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#1F4CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4CA8
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4CA8#FFFFFF#000000##FFFFFF
##1F4CA81.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f4ca8;
/* rgb */ color: rgb(31, 76, 168);
/* oklch */ color: oklch(44.3% 0.156 262.4);
Tailwind
colors: {
  custom: {
    50: '#727dc3',
    500: '#1f4ca8',
    950: '#000000',
  },
}
SCSS
$custom: #1f4ca8;
$custom-light: #727dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4ca8",
  "rgb": {
    "r": 31,
    "g": 76,
    "b": 168
  },
  "hsl": {
    "h": 220.292,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.44284,
    "c": 0.15642,
    "h": 262.4
  },
  "luminance": 0.08287
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F4CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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