#1F1899#1F1899

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

Color values

HEX#1F1899
RGBrgb(31, 24, 153)
HSLhsl(243, 73%, 35%)
HSVhsv(243, 84%, 60%)
CMYKcmyk(79.7%, 84.3%, 0%, 40%)
CIE-LABlab(20.99, 46.46, -66.94)
CIE-LCHlch(20.99, 81.49, 304.76°)
OKLaboklab(33.94% 0.0054 -0.1937)
OKLCHoklch(33.94% 0.194 271.6)
XYZxyz(6.6395, 3.2437, 30.4070)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1899 #929918
analogous
#185199 #1F1899 #601899
triadic
#1F1899 #991F18 #18991F
tetradic
#1F1899 #991851 #929918 #189960
square
#1F1899 #991851 #929918 #189960
split-complementary
#1F1899 #996018 #519918
monochromatic
#0A072F #141064 #1F1899 #2A20CE #5149E2

Accessibility & contrast

On white

12.74
#1F1899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1F1899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1899
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1899#FFFFFF#000000##FFFFFF
##1F18991.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1899;
/* rgb */ color: rgb(31, 24, 153);
/* oklch */ color: oklch(33.9% 0.194 271.6);
Tailwind
colors: {
  custom: {
    50: '#7359b8',
    500: '#1f1899',
    950: '#000000',
  },
}
SCSS
$custom: #1f1899;
$custom-light: #7359b8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1899",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 153
  },
  "hsl": {
    "h": 243.256,
    "s": 72.881,
    "l": 34.706
  },
  "oklch": {
    "l": 0.33944,
    "c": 0.19377,
    "h": 271.6
  },
  "luminance": 0.03244
}

Semantic roles & 50–950 ramp

primary
#1F1899
secondary
#BDC449
accent
#F038E6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F1899

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

Preview Lab → · Contrast checker → · Palette generator →

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