#1F4895#1F4895

#1F4895 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 41.9% C 0.135 H 261.5°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#1F4895
RGBrgb(31, 72, 149)
HSLhsl(219, 66%, 35%)
HSVhsv(219, 79%, 58%)
CMYKcmyk(79.2%, 51.7%, 0%, 41.6%)
CIE-LABlab(32.02, 14.88, -46.41)
CIE-LCHlch(32.02, 48.74, 287.78°)
OKLaboklab(41.9% -0.0199 -0.1336)
OKLCHoklch(41.9% 0.135 261.5)
XYZxyz(8.3053, 7.0950, 29.3597)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4895 #956C1F
analogous
#1F8395 #1F4895 #311F95
triadic
#1F4895 #951F48 #48951F
tetradic
#1F4895 #951F83 #956C1F #1F9531
square
#1F4895 #951F83 #956C1F #1F9531
split-complementary
#1F4895 #95311F #83951F
monochromatic
#0A1730 #143062 #1F4895 #2A60C8 #5382DB

Accessibility & contrast

On white

8.68
#1F4895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#1F4895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4895
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4895#FFFFFF#000000##FFFFFF
##1F48951.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175198
Deuteranopia (green-blind)
#004693
Tritanopia (blue-blind)
#005B67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f4895;
/* rgb */ color: rgb(31, 72, 149);
/* oklch */ color: oklch(41.9% 0.135 261.5);
Tailwind
colors: {
  custom: {
    50: '#6e7ab5',
    500: '#1f4895',
    950: '#000000',
  },
}
SCSS
$custom: #1f4895;
$custom-light: #6e7ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4895",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 149
  },
  "hsl": {
    "h": 219.153,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41899,
    "c": 0.13503,
    "h": 261.5
  },
  "luminance": 0.07096
}

Semantic roles & 50–950 ramp

primary
#1F4895
secondary
#BF9951
accent
#AE3FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4895

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

Preview Lab → · Contrast checker → · Palette generator →

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