#1F4C90#1F4C90

#1F4C90 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.4% C 0.123 H 258.7°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#1F4C90
RGBrgb(31, 76, 144)
HSLhsl(216, 65%, 34%)
HSVhsv(216, 78%, 56%)
CMYKcmyk(78.5%, 47.2%, 0%, 43.5%)
CIE-LABlab(32.86, 10.17, -42.01)
CIE-LCHlch(32.86, 43.23, 283.60°)
OKLaboklab(42.43% -0.024 -0.1205)
OKLCHoklch(42.43% 0.123 258.7)
XYZxyz(8.1817, 7.4729, 27.3914)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4C90 #90631F
analogous
#1F8590 #1F4C90 #2B1F90
triadic
#1F4C90 #901F4C #4C901F
tetradic
#1F4C90 #901F85 #90631F #1F902B
square
#1F4C90 #901F85 #90631F #1F902B
split-complementary
#1F4C90 #902B1F #85901F
monochromatic
#09172B #14315E #1F4C90 #2A67C2 #5087D9

Accessibility & contrast

On white

8.42
#1F4C90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#1F4C90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4C90
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4C90#FFFFFF#000000##FFFFFF
##1F4C901.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285393
Deuteranopia (green-blind)
#0C488F
Tritanopia (blue-blind)
#005C67
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4c90;
/* rgb */ color: rgb(31, 76, 144);
/* oklch */ color: oklch(42.4% 0.123 258.7);
Tailwind
colors: {
  custom: {
    50: '#6c7db1',
    500: '#1f4c90',
    950: '#000000',
  },
}
SCSS
$custom: #1f4c90;
$custom-light: #6c7db1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4c90",
  "rgb": {
    "r": 31,
    "g": 76,
    "b": 144
  },
  "hsl": {
    "h": 216.106,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.4243,
    "c": 0.12291,
    "h": 258.7
  },
  "luminance": 0.07474
}

Semantic roles & 50–950 ramp

primary
#1F4C90
secondary
#BC914E
accent
#A540E8
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4C90

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

Preview Lab → · Contrast checker → · Palette generator →

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