#1F1F83#1F1F83

#1F1F83 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.161 H 272.8°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#1F1F83
RGBrgb(31, 31, 131)
HSLhsl(240, 62%, 32%)
HSVhsv(240, 76%, 51%)
CMYKcmyk(76.3%, 76.3%, 0%, 48.6%)
CIE-LABlab(19.68, 35.43, -55.42)
CIE-LCHlch(19.68, 65.77, 302.59°)
OKLaboklab(32.26% 0.0078 -0.1604)
OKLCHoklch(32.26% 0.161 272.8)
XYZxyz(5.1504, 2.9094, 21.7585)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1F83 #83831F
analogous
#1F5183 #1F1F83 #511F83
triadic
#1F1F83 #831F1F #1F831F
tetradic
#1F1F83 #831F51 #83831F #1F8351
square
#1F1F83 #831F51 #83831F #1F8351
split-complementary
#1F1F83 #83511F #51831F
monochromatic
#080820 #131352 #1F1F83 #2B2BB4 #4949D4

Accessibility & contrast

On white

13.27
#1F1F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1F1F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1F83
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1F83#FFFFFF#000000##FFFFFF
##1F1F831.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002B81
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f1f83;
/* rgb */ color: rgb(31, 31, 131);
/* oklch */ color: oklch(32.3% 0.161 272.8);
Tailwind
colors: {
  custom: {
    50: '#6c5ca8',
    500: '#1f1f83',
    950: '#000000',
  },
}
SCSS
$custom: #1f1f83;
$custom-light: #6c5ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1f83",
  "rgb": {
    "r": 31,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 240,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32262,
    "c": 0.16055,
    "h": 272.8
  },
  "luminance": 0.0291
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F1F83

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

Preview Lab → · Contrast checker → · Palette generator →

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