#1F1885#1F1885

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

Color values

HEX#1F1885
RGBrgb(31, 24, 133)
HSLhsl(244, 69%, 31%)
HSVhsv(244, 82%, 52%)
CMYKcmyk(76.7%, 82%, 0%, 47.8%)
CIE-LABlab(18.53, 40.05, -58.58)
CIE-LCHlch(18.53, 70.96, 304.36°)
OKLaboklab(31.52% 0.0104 -0.1695)
OKLCHoklch(31.52% 0.17 273.5)
XYZxyz(5.1239, 2.6375, 22.4248)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1885 #7E8518
analogous
#184785 #1F1885 #551885
triadic
#1F1885 #851F18 #18851F
tetradic
#1F1885 #851847 #7E8518 #188555
square
#1F1885 #851847 #7E8518 #188555
split-complementary
#1F1885 #855518 #478518
monochromatic
#07051D #130F51 #1F1885 #2B21B9 #463CDC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F1885#FFFFFF#000000##FFFFFF
##1F18851.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)
#003288
Deuteranopia (green-blind)
#002883
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f1885;
/* rgb */ color: rgb(31, 24, 133);
/* oklch */ color: oklch(31.5% 0.170 273.5);
Tailwind
colors: {
  custom: {
    50: '#6e58aa',
    500: '#1f1885',
    950: '#000000',
  },
}
SCSS
$custom: #1f1885;
$custom-light: #6e58aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1885",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 243.853,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31523,
    "c": 0.16978,
    "h": 273.5
  },
  "luminance": 0.02638
}

Semantic roles & 50–950 ramp

primary
#1F1885
secondary
#B1B940
accent
#EC3CE1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1885

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

Preview Lab → · Contrast checker → · Palette generator →

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