#1F1F85#1F1F85

#1F1F85 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.163 H 272.6°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#1F1F85
RGBrgb(31, 31, 133)
HSLhsl(240, 62%, 32%)
HSVhsv(240, 77%, 52%)
CMYKcmyk(76.7%, 76.7%, 0%, 47.8%)
CIE-LABlab(19.90, 36.13, -56.31)
CIE-LCHlch(19.90, 66.90, 302.68°)
OKLaboklab(32.49% 0.0075 -0.163)
OKLCHoklch(32.49% 0.163 272.6)
XYZxyz(5.2873, 2.9642, 22.4792)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1F85 #85851F
analogous
#1F5285 #1F1F85 #521F85
triadic
#1F1F85 #851F1F #1F851F
tetradic
#1F1F85 #851F52 #85851F #1F8552
square
#1F1F85 #851F52 #85851F #1F8552
split-complementary
#1F1F85 #85521F #52851F
monochromatic
#080822 #131353 #1F1F85 #2B2BB7 #4A4AD5

Accessibility & contrast

On white

13.18
#1F1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1F1F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1F85
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1F85#FFFFFF#000000##FFFFFF
##1F1F851.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002B83
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f1f85;
/* rgb */ color: rgb(31, 31, 133);
/* oklch */ color: oklch(32.5% 0.163 272.6);
Tailwind
colors: {
  custom: {
    50: '#6d5caa',
    500: '#1f1f85',
    950: '#000000',
  },
}
SCSS
$custom: #1f1f85;
$custom-light: #6d5caa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1f85",
  "rgb": {
    "r": 31,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 240,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32486,
    "c": 0.16313,
    "h": 272.6
  },
  "luminance": 0.02965
}

Semantic roles & 50–950 ramp

primary
#1F1F85
secondary
#B7B749
accent
#E543E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F1F85

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

Preview Lab → · Contrast checker → · Palette generator →

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