#1F2796#1F2796

#1F2796 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.177 H 270.3°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#1F2796
RGBrgb(31, 39, 150)
HSLhsl(236, 66%, 35%)
HSVhsv(236, 79%, 59%)
CMYKcmyk(79.3%, 74%, 0%, 41.2%)
CIE-LABlab(23.48, 37.31, -60.97)
CIE-LCHlch(23.48, 71.49, 301.46°)
OKLaboklab(35.59% 0.001 -0.1766)
OKLCHoklch(35.59% 0.177 270.3)
XYZxyz(6.7937, 3.9436, 29.2514)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2796 #968E1F
analogous
#1F6396 #1F2796 #521F96
triadic
#1F2796 #961F27 #27961F
tetradic
#1F2796 #961F63 #968E1F #1F9652
square
#1F2796 #961F63 #968E1F #1F9652
split-complementary
#1F2796 #96521F #63961F
monochromatic
#0A0D31 #151A63 #1F2796 #2934C9 #545DDC

Accessibility & contrast

On white

11.74
#1F2796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F2796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2796
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2796#FFFFFF#000000##FFFFFF
##1F27961.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003294
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2796;
/* rgb */ color: rgb(31, 39, 150);
/* oklch */ color: oklch(35.6% 0.177 270.3);
Tailwind
colors: {
  custom: {
    50: '#7162b6',
    500: '#1f2796',
    950: '#000000',
  },
}
SCSS
$custom: #1f2796;
$custom-light: #7162b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2796",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 235.966,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35592,
    "c": 0.17658,
    "h": 270.3
  },
  "luminance": 0.03944
}

Semantic roles & 50–950 ramp

primary
#1F2796
secondary
#BFB852
accent
#DD3FE9
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2796

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

Preview Lab → · Contrast checker → · Palette generator →

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