#1F4A90#1F4A90

#1F4A90 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.0% C 0.125 H 259.8°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#1F4A90
RGBrgb(31, 74, 144)
HSLhsl(217, 65%, 34%)
HSVhsv(217, 78%, 56%)
CMYKcmyk(78.5%, 48.6%, 0%, 43.5%)
CIE-LABlab(32.26, 11.52, -42.98)
CIE-LCHlch(32.26, 44.49, 285.00°)
OKLaboklab(41.97% -0.0223 -0.1234)
OKLCHoklch(41.97% 0.125 259.8)
XYZxyz(8.0461, 7.2016, 27.3461)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4A90 #90651F
analogous
#1F8390 #1F4A90 #2D1F90
triadic
#1F4A90 #901F4A #4A901F
tetradic
#1F4A90 #901F83 #90651F #1F902D
square
#1F4A90 #901F83 #90651F #1F902D
split-complementary
#1F4A90 #902D1F #83901F
monochromatic
#09162B #14305E #1F4A90 #2A64C2 #5084D9

Accessibility & contrast

On white

8.61
#1F4A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#1F4A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4A90
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4A90#FFFFFF#000000##FFFFFF
##1F4A901.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235193
Deuteranopia (green-blind)
#01478F
Tritanopia (blue-blind)
#005B66
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f4a90;
/* rgb */ color: rgb(31, 74, 144);
/* oklch */ color: oklch(42.0% 0.125 259.8);
Tailwind
colors: {
  custom: {
    50: '#6c7bb1',
    500: '#1f4a90',
    950: '#000000',
  },
}
SCSS
$custom: #1f4a90;
$custom-light: #6c7bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4a90",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 144
  },
  "hsl": {
    "h": 217.168,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.4197,
    "c": 0.12541,
    "h": 259.8
  },
  "luminance": 0.07202
}

Semantic roles & 50–950 ramp

primary
#1F4A90
secondary
#BC934E
accent
#A840E8
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4A90

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

Preview Lab → · Contrast checker → · Palette generator →

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