#1F1B89#1F1B89

#1F1B89 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.172 H 272.8°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#1F1B89
RGBrgb(31, 27, 137)
HSLhsl(242, 67%, 32%)
HSVhsv(242, 80%, 54%)
CMYKcmyk(77.4%, 80.3%, 0%, 46.3%)
CIE-LABlab(19.56, 39.78, -59.39)
CIE-LCHlch(19.56, 71.48, 303.82°)
OKLaboklab(32.38% 0.0083 -0.1718)
OKLCHoklch(32.38% 0.172 272.8)
XYZxyz(5.4709, 2.8807, 23.9298)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1B89 #85891B
analogous
#1B4E89 #1F1B89 #561B89
triadic
#1F1B89 #891F1B #1B891F
tetradic
#1F1B89 #891B4E #85891B #1B8956
square
#1F1B89 #891B4E #85891B #1B8956
split-complementary
#1F1B89 #89561B #4E891B
monochromatic
#080723 #131156 #1F1B89 #2B25BC #4A44DA

Accessibility & contrast

On white

13.32
#1F1B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1F1B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1B89
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1B89#FFFFFF#000000##FFFFFF
##1F1B891.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002A87
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f1b89;
/* rgb */ color: rgb(31, 27, 137);
/* oklch */ color: oklch(32.4% 0.172 272.8);
Tailwind
colors: {
  custom: {
    50: '#6e5aad',
    500: '#1f1b89',
    950: '#000000',
  },
}
SCSS
$custom: #1f1b89;
$custom-light: #6e5aad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1b89",
  "rgb": {
    "r": 31,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 242.182,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32382,
    "c": 0.17205,
    "h": 272.8
  },
  "luminance": 0.02881
}

Semantic roles & 50–950 ramp

primary
#1F1B89
secondary
#B7BC44
accent
#EA3EE4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #1F1B89

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

Preview Lab → · Contrast checker → · Palette generator →

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