#1F1D89#1F1D89

#1F1D89 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.170 H 272.5°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#1F1D89
RGBrgb(31, 29, 137)
HSLhsl(241, 65%, 33%)
HSVhsv(241, 79%, 54%)
CMYKcmyk(77.4%, 78.8%, 0%, 46.3%)
CIE-LABlab(19.95, 38.67, -58.75)
CIE-LCHlch(19.95, 70.33, 303.36°)
OKLaboklab(32.65% 0.0075 -0.17)
OKLCHoklch(32.65% 0.17 272.5)
XYZxyz(5.5183, 2.9756, 23.9456)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1D89 #87891D
analogous
#1D5189 #1F1D89 #551D89
triadic
#1F1D89 #891F1D #1D891F
tetradic
#1F1D89 #891D51 #87891D #1D8955
square
#1F1D89 #891D51 #87891D #1D8955
split-complementary
#1F1D89 #89551D #51891D
monochromatic
#080824 #141256 #1F1D89 #2A28BC #4B48D8

Accessibility & contrast

On white

13.16
#1F1D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1F1D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1D89
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1D89#FFFFFF#000000##FFFFFF
##1F1D891.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002B87
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f1d89;
/* rgb */ color: rgb(31, 29, 137);
/* oklch */ color: oklch(32.7% 0.170 272.5);
Tailwind
colors: {
  custom: {
    50: '#6e5bad',
    500: '#1f1d89',
    950: '#000000',
  },
}
SCSS
$custom: #1f1d89;
$custom-light: #6e5bad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1d89",
  "rgb": {
    "r": 31,
    "g": 29,
    "b": 137
  },
  "hsl": {
    "h": 241.111,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32653,
    "c": 0.17019,
    "h": 272.5
  },
  "luminance": 0.02976
}

Semantic roles & 50–950 ramp

primary
#1F1D89
secondary
#B8BA47
accent
#E840E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F1D89

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

Preview Lab → · Contrast checker → · Palette generator →

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