#1F1D83#1F1D83

#1F1D83 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.163 H 273.1°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#1F1D83
RGBrgb(31, 29, 131)
HSLhsl(241, 64%, 31%)
HSVhsv(241, 78%, 51%)
CMYKcmyk(76.3%, 77.9%, 0%, 48.6%)
CIE-LABlab(19.26, 36.61, -56.11)
CIE-LCHlch(19.26, 66.99, 303.12°)
OKLaboklab(31.97% 0.0088 -0.1623)
OKLCHoklch(31.97% 0.163 273.1)
XYZxyz(5.0998, 2.8082, 21.7416)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1D83 #81831D
analogous
#1D4E83 #1F1D83 #521D83
triadic
#1F1D83 #831F1D #1D831F
tetradic
#1F1D83 #831D4E #81831D #1D8352
square
#1F1D83 #831D4E #81831D #1D8352
split-complementary
#1F1D83 #83521D #4E831D
monochromatic
#07071F #131251 #1F1D83 #2B28B5 #4745D6

Accessibility & contrast

On white

13.45
#1F1D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1F1D83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1D83
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1D83#FFFFFF#000000##FFFFFF
##1F1D831.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002A81
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f1d83;
/* rgb */ color: rgb(31, 29, 131);
/* oklch */ color: oklch(32.0% 0.163 273.1);
Tailwind
colors: {
  custom: {
    50: '#6d5ba8',
    500: '#1f1d83',
    950: '#000000',
  },
}
SCSS
$custom: #1f1d83;
$custom-light: #6d5ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1d83",
  "rgb": {
    "r": 31,
    "g": 29,
    "b": 131
  },
  "hsl": {
    "h": 241.176,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31966,
    "c": 0.16259,
    "h": 273.1
  },
  "luminance": 0.02809
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F1D83

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

Preview Lab → · Contrast checker → · Palette generator →

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