#1F1889#1F1889

#1F1889 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.175 H 273.1°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#1F1889
RGBrgb(31, 24, 137)
HSLhsl(244, 70%, 32%)
HSVhsv(244, 82%, 54%)
CMYKcmyk(77.4%, 82.5%, 0%, 46.3%)
CIE-LABlab(19.01, 41.36, -60.29)
CIE-LCHlch(19.01, 73.11, 304.45°)
OKLaboklab(32% 0.0094 -0.1744)
OKLCHoklch(32% 0.175 273.1)
XYZxyz(5.4056, 2.7501, 23.9080)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1889 #828918
analogous
#184A89 #1F1889 #581889
triadic
#1F1889 #891F18 #18891F
tetradic
#1F1889 #89184A #828918 #188958
square
#1F1889 #89184A #828918 #188958
split-complementary
#1F1889 #895818 #4A8918
monochromatic
#070621 #130F55 #1F1889 #2B21BD #483EDD

Accessibility & contrast

On white

13.55
#1F1889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1F1889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1889
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1889#FFFFFF#000000##FFFFFF
##1F18891.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002987
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f1889;
/* rgb */ color: rgb(31, 24, 137);
/* oklch */ color: oklch(32.0% 0.175 273.1);
Tailwind
colors: {
  custom: {
    50: '#6f58ad',
    500: '#1f1889',
    950: '#000000',
  },
}
SCSS
$custom: #1f1889;
$custom-light: #6f58ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1889",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 243.717,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32001,
    "c": 0.17468,
    "h": 273.1
  },
  "luminance": 0.02751
}

Semantic roles & 50–950 ramp

primary
#1F1889
secondary
#B5BD40
accent
#ED3BE2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1F1889

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

Preview Lab → · Contrast checker → · Palette generator →

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