#1F4096#1F4096

#1F4096 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.2% C 0.147 H 264.7°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#1F4096
RGBrgb(31, 64, 150)
HSLhsl(223, 66%, 35%)
HSVhsv(223, 79%, 59%)
CMYKcmyk(79.3%, 57.3%, 0%, 41.2%)
CIE-LABlab(29.81, 20.76, -50.61)
CIE-LCHlch(29.81, 54.70, 292.30°)
OKLaboklab(40.24% -0.0136 -0.1461)
OKLCHoklch(40.24% 0.147 264.7)
XYZxyz(7.9015, 6.1592, 29.6207)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4096 #96751F
analogous
#1F7C96 #1F4096 #391F96
triadic
#1F4096 #961F40 #40961F
tetradic
#1F4096 #961F7C #96751F #1F9639
square
#1F4096 #961F7C #96751F #1F9639
split-complementary
#1F4096 #96391F #7C961F
monochromatic
#0A1531 #152A63 #1F4096 #2956C9 #5479DC

Accessibility & contrast

On white

9.41
#1F4096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#1F4096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4096
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4096#FFFFFF#000000##FFFFFF
##1F40961.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C99
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#005564
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f4096;
/* rgb */ color: rgb(31, 64, 150);
/* oklch */ color: oklch(40.2% 0.147 264.7);
Tailwind
colors: {
  custom: {
    50: '#6e74b6',
    500: '#1f4096',
    950: '#000000',
  },
}
SCSS
$custom: #1f4096;
$custom-light: #6e74b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4096",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 150
  },
  "hsl": {
    "h": 223.361,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40245,
    "c": 0.14669,
    "h": 264.7
  },
  "luminance": 0.0616
}

Semantic roles & 50–950 ramp

primary
#1F4096
secondary
#BFA152
accent
#BA3FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4096

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

Preview Lab → · Contrast checker → · Palette generator →

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