#1F4D90#1F4D90

#1F4D90 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 42.7% C 0.122 H 258.2°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#1F4D90
RGBrgb(31, 77, 144)
HSLhsl(216, 65%, 34%)
HSVhsv(216, 78%, 56%)
CMYKcmyk(78.5%, 46.5%, 0%, 43.5%)
CIE-LABlab(33.16, 9.49, -41.53)
CIE-LCHlch(33.16, 42.60, 282.87°)
OKLaboklab(42.66% -0.0249 -0.1191)
OKLCHoklch(42.66% 0.122 258.2)
XYZxyz(8.2511, 7.6117, 27.4145)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D90 #90621F
analogous
#1F8690 #1F4D90 #2A1F90
triadic
#1F4D90 #901F4D #4D901F
tetradic
#1F4D90 #901F86 #90621F #1F902A
square
#1F4D90 #901F86 #90621F #1F902A
split-complementary
#1F4D90 #902A1F #86901F
monochromatic
#09172B #14325E #1F4D90 #2A68C2 #5088D9

Accessibility & contrast

On white

8.32
#1F4D90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#1F4D90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4D90
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D90#FFFFFF#000000##FFFFFF
##1F4D901.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5493
Deuteranopia (green-blind)
#10498F
Tritanopia (blue-blind)
#005D67
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4d90;
/* rgb */ color: rgb(31, 77, 144);
/* oklch */ color: oklch(42.7% 0.122 258.2);
Tailwind
colors: {
  custom: {
    50: '#6c7eb1',
    500: '#1f4d90',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d90;
$custom-light: #6c7eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d90",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 144
  },
  "hsl": {
    "h": 215.575,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.42663,
    "c": 0.12168,
    "h": 258.2
  },
  "luminance": 0.07613
}

Semantic roles & 50–950 ramp

primary
#1F4D90
secondary
#BC904E
accent
#A340E8
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4D90

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

Preview Lab → · Contrast checker → · Palette generator →

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