#1F5096#1F5096

#1F5096 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.8% C 0.126 H 258.0°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#1F5096
RGBrgb(31, 80, 150)
HSLhsl(215, 66%, 35%)
HSVhsv(215, 79%, 59%)
CMYKcmyk(79.3%, 46.7%, 0%, 41.2%)
CIE-LABlab(34.46, 9.88, -43.10)
CIE-LCHlch(34.46, 44.22, 282.91°)
OKLaboklab(43.79% -0.0264 -0.1236)
OKLCHoklch(43.79% 0.126 258)
XYZxyz(8.9367, 8.2296, 29.9657)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5096 #96651F
analogous
#1F8B96 #1F5096 #291F96
triadic
#1F5096 #961F50 #50961F
tetradic
#1F5096 #961F8B #96651F #1F9629
square
#1F5096 #961F8B #96651F #1F9629
split-complementary
#1F5096 #96291F #8B961F
monochromatic
#0A1A31 #153563 #1F5096 #296BC9 #548CDC

Accessibility & contrast

On white

7.94
#1F5096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#1F5096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5096
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5096#FFFFFF#000000##FFFFFF
##1F50961.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5799
Deuteranopia (green-blind)
#0E4C95
Tritanopia (blue-blind)
#00616B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f5096;
/* rgb */ color: rgb(31, 80, 150);
/* oklch */ color: oklch(43.8% 0.126 258.0);
Tailwind
colors: {
  custom: {
    50: '#6e80b5',
    500: '#1f5096',
    950: '#000000',
  },
}
SCSS
$custom: #1f5096;
$custom-light: #6e80b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5096",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 150
  },
  "hsl": {
    "h": 215.294,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4379,
    "c": 0.12643,
    "h": 258
  },
  "luminance": 0.08231
}

Semantic roles & 50–950 ramp

primary
#1F5096
secondary
#BF9252
accent
#A33FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1F5096

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

Preview Lab → · Contrast checker → · Palette generator →

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