#1F1989#1F1989

#1F1989 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.174 H 273.0°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#1F1989
RGBrgb(31, 25, 137)
HSLhsl(243, 69%, 32%)
HSVhsv(243, 82%, 54%)
CMYKcmyk(77.4%, 81.8%, 0%, 46.3%)
CIE-LABlab(19.19, 40.84, -60.00)
CIE-LCHlch(19.19, 72.58, 304.25°)
OKLaboklab(32.12% 0.0091 -0.1736)
OKLCHoklch(32.12% 0.174 273)
XYZxyz(5.4266, 2.7921, 23.9150)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1989 #838919
analogous
#194B89 #1F1989 #571989
triadic
#1F1989 #891F19 #19891F
tetradic
#1F1989 #89194B #838919 #198957
square
#1F1989 #89194B #838919 #198957
split-complementary
#1F1989 #895719 #4B8919
monochromatic
#080621 #131055 #1F1989 #2B22BD #4940DC

Accessibility & contrast

On white

13.47
#1F1989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1F1989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1989
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1989#FFFFFF#000000##FFFFFF
##1F19891.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002987
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f1989;
/* rgb */ color: rgb(31, 25, 137);
/* oklch */ color: oklch(32.1% 0.174 273.0);
Tailwind
colors: {
  custom: {
    50: '#6f59ad',
    500: '#1f1989',
    950: '#000000',
  },
}
SCSS
$custom: #1f1989;
$custom-light: #6f59ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1989",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 243.214,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32124,
    "c": 0.17383,
    "h": 273
  },
  "luminance": 0.02793
}

Semantic roles & 50–950 ramp

primary
#1F1989
secondary
#B6BC41
accent
#EC3CE3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #1F1989

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

Preview Lab → · Contrast checker → · Palette generator →

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