#1F1785#1F1785

#1F1785 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.171 H 273.6°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#1F1785
RGBrgb(31, 23, 133)
HSLhsl(244, 71%, 31%)
HSVhsv(244, 83%, 52%)
CMYKcmyk(76.7%, 82.7%, 0%, 47.8%)
CIE-LABlab(18.35, 40.57, -58.87)
CIE-LCHlch(18.35, 71.49, 304.57°)
OKLaboklab(31.4% 0.0108 -0.1703)
OKLCHoklch(31.4% 0.171 273.6)
XYZxyz(5.1037, 2.5970, 22.4181)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1785 #7D8517
analogous
#174685 #1F1785 #561785
triadic
#1F1785 #851F17 #17851F
tetradic
#1F1785 #851746 #7D8517 #178556
square
#1F1785 #851746 #7D8517 #178556
split-complementary
#1F1785 #855617 #468517
monochromatic
#07051D #130E51 #1F1785 #2B20B9 #453ADD

Accessibility & contrast

On white

13.82
#1F1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1F1785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1785
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1785#FFFFFF#000000##FFFFFF
##1F17851.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003288
Deuteranopia (green-blind)
#002783
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f1785;
/* rgb */ color: rgb(31, 23, 133);
/* oklch */ color: oklch(31.4% 0.171 273.6);
Tailwind
colors: {
  custom: {
    50: '#6e57aa',
    500: '#1f1785',
    950: '#000000',
  },
}
SCSS
$custom: #1f1785;
$custom-light: #6e57aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1785",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 244.364,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31399,
    "c": 0.17064,
    "h": 273.6
  },
  "luminance": 0.02598
}

Semantic roles & 50–950 ramp

primary
#1F1785
secondary
#B0B93F
accent
#ED3BE0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1785

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

Preview Lab → · Contrast checker → · Palette generator →

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