#1F1789#1F1789

#1F1789 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.176 H 273.2°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#1F1789
RGBrgb(31, 23, 137)
HSLhsl(244, 71%, 31%)
HSVhsv(244, 83%, 54%)
CMYKcmyk(77.4%, 83.2%, 0%, 46.3%)
CIE-LABlab(18.84, 41.86, -60.58)
CIE-LCHlch(18.84, 73.63, 304.65°)
OKLaboklab(31.88% 0.0097 -0.1752)
OKLCHoklch(31.88% 0.176 273.2)
XYZxyz(5.3853, 2.7097, 23.9013)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1789 #818917
analogous
#174889 #1F1789 #581789
triadic
#1F1789 #891F17 #17891F
tetradic
#1F1789 #891748 #818917 #178958
square
#1F1789 #891748 #818917 #178958
split-complementary
#1F1789 #895817 #488917
monochromatic
#070520 #130E55 #1F1789 #2B20BD #483CDE

Accessibility & contrast

On white

13.62
#1F1789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1F1789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1789
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1789#FFFFFF#000000##FFFFFF
##1F17891.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1789;
/* rgb */ color: rgb(31, 23, 137);
/* oklch */ color: oklch(31.9% 0.176 273.2);
Tailwind
colors: {
  custom: {
    50: '#6f58ad',
    500: '#1f1789',
    950: '#000000',
  },
}
SCSS
$custom: #1f1789;
$custom-light: #6f58ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1789",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 244.211,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31881,
    "c": 0.17551,
    "h": 273.2
  },
  "luminance": 0.0271
}

Semantic roles & 50–950 ramp

primary
#1F1789
secondary
#B4BD3F
accent
#EE3AE1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1F1789

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

Preview Lab → · Contrast checker → · Palette generator →

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