#1F1796#1F1796

#1F1796 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.5% C 0.191 H 271.9°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#1F1796
RGBrgb(31, 23, 150)
HSLhsl(244, 73%, 34%)
HSVhsv(244, 85%, 59%)
CMYKcmyk(79.3%, 84.7%, 0%, 41.2%)
CIE-LABlab(20.46, 45.99, -65.98)
CIE-LCHlch(20.46, 80.42, 304.88°)
OKLaboklab(33.47% 0.0064 -0.1909)
OKLCHoklch(33.47% 0.191 271.9)
XYZxyz(6.3746, 3.1054, 29.1117)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1796 #8E9617
analogous
#174F96 #1F1796 #5F1796
triadic
#1F1796 #961F17 #17961F
tetradic
#1F1796 #96174F #8E9617 #17965F
square
#1F1796 #96174F #8E9617 #17965F
split-complementary
#1F1796 #965F17 #4F9617
monochromatic
#09072C #140F61 #1F1796 #2A1FCB #4F45E2

Accessibility & contrast

On white

12.95
#1F1796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1F1796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1796
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1796#FFFFFF#000000##FFFFFF
##1F17961.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003799
Deuteranopia (green-blind)
#002B94
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f1796;
/* rgb */ color: rgb(31, 23, 150);
/* oklch */ color: oklch(33.5% 0.191 271.9);
Tailwind
colors: {
  custom: {
    50: '#7259b6',
    500: '#1f1796',
    950: '#000000',
  },
}
SCSS
$custom: #1f1796;
$custom-light: #7259b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1796",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 243.78,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33467,
    "c": 0.191,
    "h": 271.9
  },
  "luminance": 0.03106
}

Semantic roles & 50–950 ramp

primary
#1F1796
secondary
#BBC345
accent
#F038E4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1796

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

Preview Lab → · Contrast checker → · Palette generator →

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