#1F1799#1F1799

#1F1799 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.8% C 0.195 H 271.6°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#1F1799
RGBrgb(31, 23, 153)
HSLhsl(244, 74%, 35%)
HSVhsv(244, 85%, 60%)
CMYKcmyk(79.7%, 85%, 0%, 40%)
CIE-LABlab(20.84, 46.92, -67.20)
CIE-LCHlch(20.84, 81.96, 304.92°)
OKLaboklab(33.84% 0.0056 -0.1944)
OKLCHoklch(33.84% 0.195 271.6)
XYZxyz(6.6193, 3.2033, 30.4002)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1799 #919917
analogous
#175099 #1F1799 #601799
triadic
#1F1799 #991F17 #17991F
tetradic
#1F1799 #991750 #919917 #179960
square
#1F1799 #991750 #919917 #179960
split-complementary
#1F1799 #996017 #509917
monochromatic
#09072F #140F64 #1F1799 #2A1FCE #5147E3

Accessibility & contrast

On white

12.80
#1F1799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1F1799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1799
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1799#FFFFFF#000000##FFFFFF
##1F17991.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00389C
Deuteranopia (green-blind)
#002C97
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f1799;
/* rgb */ color: rgb(31, 23, 153);
/* oklch */ color: oklch(33.8% 0.195 271.6);
Tailwind
colors: {
  custom: {
    50: '#7359b8',
    500: '#1f1799',
    950: '#000000',
  },
}
SCSS
$custom: #1f1799;
$custom-light: #7359b8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1799",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 153
  },
  "hsl": {
    "h": 243.692,
    "s": 73.864,
    "l": 34.51
  },
  "oklch": {
    "l": 0.33837,
    "c": 0.1945,
    "h": 271.6
  },
  "luminance": 0.03204
}

Semantic roles & 50–950 ramp

primary
#1F1799
secondary
#BDC547
accent
#F137E5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F1799

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

Preview Lab → · Contrast checker → · Palette generator →

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