#1F1589#1F1589

#1F1589 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.7% C 0.177 H 273.4°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#1F1589
RGBrgb(31, 21, 137)
HSLhsl(245, 73%, 31%)
HSVhsv(245, 85%, 54%)
CMYKcmyk(77.4%, 84.7%, 0%, 46.3%)
CIE-LABlab(18.51, 42.83, -61.12)
CIE-LCHlch(18.51, 74.64, 305.02°)
OKLaboklab(31.65% 0.0104 -0.1768)
OKLCHoklch(31.65% 0.177 273.4)
XYZxyz(5.3471, 2.6332, 23.8885)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1589 #7F8915
analogous
#154589 #1F1589 #591589
triadic
#1F1589 #891F15 #15891F
tetradic
#1F1589 #891545 #7F8915 #158959
square
#1F1589 #891545 #7F8915 #158959
split-complementary
#1F1589 #895915 #458915
monochromatic
#07051F #130D54 #1F1589 #2B1DBE #4638E0

Accessibility & contrast

On white

13.75
#1F1589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1F1589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1589
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1589#FFFFFF#000000##FFFFFF
##1F15891.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328C
Deuteranopia (green-blind)
#002787
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f1589;
/* rgb */ color: rgb(31, 21, 137);
/* oklch */ color: oklch(31.7% 0.177 273.4);
Tailwind
colors: {
  custom: {
    50: '#6f57ad',
    500: '#1f1589',
    950: '#000000',
  },
}
SCSS
$custom: #1f1589;
$custom-light: #6f57ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1589",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 137
  },
  "hsl": {
    "h": 245.172,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31652,
    "c": 0.17709,
    "h": 273.4
  },
  "luminance": 0.02634
}

Semantic roles & 50–950 ramp

primary
#1F1589
secondary
#B2BD3D
accent
#F038E0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1F1589

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

Preview Lab → · Contrast checker → · Palette generator →

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