#1F2596#1F2596

#1F2596 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.179 H 270.6°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#1F2596
RGBrgb(31, 37, 150)
HSLhsl(237, 66%, 35%)
HSVhsv(237, 79%, 59%)
CMYKcmyk(79.3%, 75.3%, 0%, 41.2%)
CIE-LABlab(23.05, 38.52, -61.69)
CIE-LCHlch(23.05, 72.73, 301.98°)
OKLaboklab(35.28% 0.0018 -0.1786)
OKLCHoklch(35.28% 0.179 270.6)
XYZxyz(6.7298, 3.8157, 29.2301)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2596 #96901F
analogous
#1F6096 #1F2596 #541F96
triadic
#1F2596 #961F25 #25961F
tetradic
#1F2596 #961F60 #96901F #1F9654
square
#1F2596 #961F60 #96901F #1F9654
split-complementary
#1F2596 #96541F #60961F
monochromatic
#0A0C31 #151863 #1F2596 #2932C9 #545BDC

Accessibility & contrast

On white

11.91
#1F2596 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1F2596 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2596
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2596#FFFFFF#000000##FFFFFF
##1F25961.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2596;
/* rgb */ color: rgb(31, 37, 150);
/* oklch */ color: oklch(35.3% 0.179 270.6);
Tailwind
colors: {
  custom: {
    50: '#7161b6',
    500: '#1f2596',
    950: '#000000',
  },
}
SCSS
$custom: #1f2596;
$custom-light: #7161b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2596",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 150
  },
  "hsl": {
    "h": 236.975,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35284,
    "c": 0.17865,
    "h": 270.6
  },
  "luminance": 0.03816
}

Semantic roles & 50–950 ramp

primary
#1F2596
secondary
#BFB952
accent
#E03FE9
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2596

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

Preview Lab → · Contrast checker → · Palette generator →

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