#1F4595#1F4595

#1F4595 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.2% C 0.139 H 262.8°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#1F4595
RGBrgb(31, 69, 149)
HSLhsl(221, 66%, 35%)
HSVhsv(221, 79%, 58%)
CMYKcmyk(79.2%, 53.7%, 0%, 41.6%)
CIE-LABlab(31.15, 16.93, -47.82)
CIE-LCHlch(31.15, 50.73, 289.50°)
OKLaboklab(41.24% -0.0175 -0.1378)
OKLCHoklch(41.24% 0.139 262.8)
XYZxyz(8.1161, 6.7165, 29.2966)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4595 #956F1F
analogous
#1F8095 #1F4595 #341F95
triadic
#1F4595 #951F45 #45951F
tetradic
#1F4595 #951F80 #956F1F #1F9534
square
#1F4595 #951F80 #956F1F #1F9534
split-complementary
#1F4595 #95341F #80951F
monochromatic
#0A1630 #142E62 #1F4595 #2A5CC8 #537FDB

Accessibility & contrast

On white

8.96
#1F4595 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#1F4595 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4595
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4595#FFFFFF#000000##FFFFFF
##1F45951.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4F98
Deuteranopia (green-blind)
#004493
Tritanopia (blue-blind)
#005866
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f4595;
/* rgb */ color: rgb(31, 69, 149);
/* oklch */ color: oklch(41.2% 0.139 262.8);
Tailwind
colors: {
  custom: {
    50: '#6e78b5',
    500: '#1f4595',
    950: '#000000',
  },
}
SCSS
$custom: #1f4595;
$custom-light: #6e78b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4595",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 149
  },
  "hsl": {
    "h": 220.678,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41236,
    "c": 0.13887,
    "h": 262.8
  },
  "luminance": 0.06717
}

Semantic roles & 50–950 ramp

primary
#1F4595
secondary
#BF9B51
accent
#B23FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4595

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

Preview Lab → · Contrast checker → · Palette generator →

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