#1F1787#1F1787

#1F1787 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.173 H 273.4°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#1F1787
RGBrgb(31, 23, 135)
HSLhsl(244, 71%, 31%)
HSVhsv(244, 83%, 53%)
CMYKcmyk(77%, 83%, 0%, 47.1%)
CIE-LABlab(18.60, 41.22, -59.73)
CIE-LCHlch(18.60, 72.57, 304.61°)
OKLaboklab(31.64% 0.0103 -0.1728)
OKLCHoklch(31.64% 0.173 273.4)
XYZxyz(5.2432, 2.6528, 23.1527)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1787 #7F8717
analogous
#174787 #1F1787 #571787
triadic
#1F1787 #871F17 #17871F
tetradic
#1F1787 #871747 #7F8717 #178757
square
#1F1787 #871747 #7F8717 #178757
split-complementary
#1F1787 #875717 #478717
monochromatic
#07051E #130E53 #1F1787 #2B20BB #463BDE

Accessibility & contrast

On white

13.72
#1F1787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1787
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1787#FFFFFF#000000##FFFFFF
##1F17871.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328A
Deuteranopia (green-blind)
#002885
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f1787;
/* rgb */ color: rgb(31, 23, 135);
/* oklch */ color: oklch(31.6% 0.173 273.4);
Tailwind
colors: {
  custom: {
    50: '#6e57ab',
    500: '#1f1787',
    950: '#000000',
  },
}
SCSS
$custom: #1f1787;
$custom-light: #6e57ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1787",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 135
  },
  "hsl": {
    "h": 244.286,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3164,
    "c": 0.17308,
    "h": 273.4
  },
  "luminance": 0.02653
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F1787

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

Preview Lab → · Contrast checker → · Palette generator →

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