#1F1D85#1F1D85

#1F1D85 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.165 H 272.9°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#1F1D85
RGBrgb(31, 29, 133)
HSLhsl(241, 64%, 32%)
HSVhsv(241, 78%, 52%)
CMYKcmyk(76.7%, 78.2%, 0%, 47.8%)
CIE-LABlab(19.49, 37.30, -56.99)
CIE-LCHlch(19.49, 68.11, 303.20°)
OKLaboklab(32.19% 0.0084 -0.1649)
OKLCHoklch(32.19% 0.165 272.9)
XYZxyz(5.2367, 2.8629, 22.4624)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1D85 #83851D
analogous
#1D4F85 #1F1D85 #531D85
triadic
#1F1D85 #851F1D #1D851F
tetradic
#1F1D85 #851D4F #83851D #1D8553
square
#1F1D85 #851D4F #83851D #1D8553
split-complementary
#1F1D85 #85531D #4F851D
monochromatic
#080721 #131253 #1F1D85 #2B28B7 #4946D7

Accessibility & contrast

On white

13.35
#1F1D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1F1D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1D85
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1D85#FFFFFF#000000##FFFFFF
##1F1D851.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002A83
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f1d85;
/* rgb */ color: rgb(31, 29, 133);
/* oklch */ color: oklch(32.2% 0.165 272.9);
Tailwind
colors: {
  custom: {
    50: '#6d5baa',
    500: '#1f1d85',
    950: '#000000',
  },
}
SCSS
$custom: #1f1d85;
$custom-light: #6d5baa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1d85",
  "rgb": {
    "r": 31,
    "g": 29,
    "b": 133
  },
  "hsl": {
    "h": 241.154,
    "s": 64.198,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32194,
    "c": 0.16514,
    "h": 272.9
  },
  "luminance": 0.02863
}

Semantic roles & 50–950 ramp

primary
#1F1D85
secondary
#B6B846
accent
#E741E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F1D85

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

Preview Lab → · Contrast checker → · Palette generator →

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