#1F4E95#1F4E95

#1F4E95 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.3% C 0.127 H 258.8°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#1F4E95
RGBrgb(31, 78, 149)
HSLhsl(216, 66%, 35%)
HSVhsv(216, 79%, 58%)
CMYKcmyk(79.2%, 47.7%, 0%, 41.6%)
CIE-LABlab(33.79, 10.82, -43.56)
CIE-LCHlch(33.79, 44.88, 283.95°)
OKLaboklab(43.26% -0.0249 -0.125)
OKLCHoklch(43.26% 0.127 258.8)
XYZxyz(8.7123, 7.9090, 29.4954)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E95 #95661F
analogous
#1F8995 #1F4E95 #2B1F95
triadic
#1F4E95 #951F4E #4E951F
tetradic
#1F4E95 #951F89 #95661F #1F952B
square
#1F4E95 #951F89 #95661F #1F952B
split-complementary
#1F4E95 #952B1F #89951F
monochromatic
#0A1930 #143362 #1F4E95 #2A69C8 #5389DB

Accessibility & contrast

On white

8.13
#1F4E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#1F4E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E95
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E95#FFFFFF#000000##FFFFFF
##1F4E951.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275598
Deuteranopia (green-blind)
#074A94
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f4e95;
/* rgb */ color: rgb(31, 78, 149);
/* oklch */ color: oklch(43.3% 0.127 258.8);
Tailwind
colors: {
  custom: {
    50: '#6d7fb5',
    500: '#1f4e95',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e95;
$custom-light: #6d7fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e95",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 149
  },
  "hsl": {
    "h": 216.102,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.43256,
    "c": 0.12749,
    "h": 258.8
  },
  "luminance": 0.0791
}

Semantic roles & 50–950 ramp

primary
#1F4E95
secondary
#BF9351
accent
#A53FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1F4E95

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

Preview Lab → · Contrast checker → · Palette generator →

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